This commit is contained in:
sunkaixuan 2022-07-19 16:48:11 +08:00
parent 3ca1ea9d71
commit efbb539e81

View File

@ -215,7 +215,11 @@ namespace OrmTest
{ {
x = SqlFunc.Subqueryable<Order>().Where(z => z.Id == it.Id).Any() x = SqlFunc.Subqueryable<Order>().Where(z => z.Id == it.Id).Any()
}).ToList(); }).ToList();
db.Queryable<StudentA>()
.Select(x => new {
count = x.Books.Count(),
count2 = x.Books.Count()
}).ToList();
var list6 = db.Queryable<StudentA>() var list6 = db.Queryable<StudentA>()
.Includes(x => x.SchoolA, x => x.RoomList) .Includes(x => x.SchoolA, x => x.RoomList)
.Includes(x => x.Books).ToList(); .Includes(x => x.Books).ToList();