Add Unit test

This commit is contained in:
sunkaixuan 2022-05-03 11:32:04 +08:00
parent 584c70a577
commit 1ee3f07e21

View File

@ -88,6 +88,8 @@ namespace OrmTest
.Where(it => it.SchoolA.TeacherList.Any(z=>z.Id>2))
.ToList();
Check.Exception(list3333.Select(x=>x.SchoolA).SelectMany(x=>x.TeacherList).Any(it=>it.Id<=2), "unit error");
var list3 = db.Queryable<StudentA>()
.Includes(x => x.SchoolA, x => x.RoomList)//2个参数就是 then Include
.Includes(x => x.SchoolA, x => x.TeacherList)//2个参数就是 then Include