mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Queryable.Count
This commit is contained in:
parent
a8d072048b
commit
9be82db96e
@ -83,6 +83,12 @@ namespace OrmTest
|
||||
.Where(it => it.SchoolA.TeacherList.Any())
|
||||
.ToList();
|
||||
|
||||
var xxxx = 0;
|
||||
var pageList = db.Queryable<StudentA>()
|
||||
.Includes(it => it.SchoolA, it => it.TeacherList)
|
||||
.Where(it => it.SchoolA.TeacherList.Any())
|
||||
.ToPageList(1, 2, ref xxxx);
|
||||
|
||||
var list3333 = db.Queryable<StudentA>()
|
||||
.Includes(it => it.SchoolA, it => it.TeacherList)
|
||||
.Where(it => it.SchoolA.TeacherList.Any(z=>z.Id>2))
|
||||
|
@ -1048,7 +1048,8 @@ namespace SqlSugar
|
||||
this.QueryBuilder.Take == null&&
|
||||
this.QueryBuilder.OrderByValue == null &&
|
||||
this.QueryBuilder.PartitionByValue == null&&
|
||||
this.QueryBuilder.SelectValue==null)
|
||||
this.QueryBuilder.SelectValue==null&&
|
||||
this.QueryBuilder.Includes == null)
|
||||
{
|
||||
|
||||
return this.Clone().Select<int>(" COUNT(1) ").ToList().First();
|
||||
|
Loading…
Reference in New Issue
Block a user