mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 02:09:12 +08:00
Update exp to sql
This commit is contained in:
@@ -55,7 +55,7 @@ namespace OrmTest
|
||||
var list2 = db.Queryable<StudentA>()
|
||||
.Includes(x => x.SchoolA, x => x.RoomList)//2个参数就是 then Include
|
||||
.Includes(x => x.Books)
|
||||
.Where(x=>x.Books.Any())
|
||||
.Where(x=>x.Books.Any(z=>z.BookId==1))
|
||||
.Where(x => x.SchoolA.SchoolName == "北大")
|
||||
.ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user