Add unit test

This commit is contained in:
sunkaixuan 2023-07-10 20:02:49 +08:00
parent a31ab31a83
commit 9ae8a9a3c9

View File

@ -12,8 +12,8 @@ namespace OrmTest
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<EmpLicenseLogOff, EmpInformation, EmpDepartmentJob,EmpLicense>();
db.Queryable<EmpLicenseLogOff>()
.Where(it => it.EmpLicense.EmpInformation.EmpDepartmentJobs.Any(z => z.DepId == 1))
.ToList();
.Where(it => it.EmpLicense.EmpInformation.EmpDepartmentJobs.Any())
.ToList();
}
}
}