Add unit test

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

View File

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