Update exp to sql

This commit is contained in:
sunkaixuan
2022-05-03 11:28:01 +08:00
parent 5f7bf91b65
commit 584c70a577
2 changed files with 22 additions and 3 deletions

View File

@@ -83,6 +83,10 @@ namespace OrmTest
.Where(it => it.SchoolA.TeacherList.Any())
.ToList();
var list3333 = db.Queryable<StudentA>()
.Includes(it => it.SchoolA, it => it.TeacherList)
.Where(it => it.SchoolA.TeacherList.Any(z=>z.Id>2))
.ToList();
var list3 = db.Queryable<StudentA>()
.Includes(x => x.SchoolA, x => x.RoomList)//2个参数就是 then Include