Update .Count

This commit is contained in:
sunkaixuan 2022-05-11 17:57:08 +08:00
parent b4d5d49c4d
commit 319c6e62f1

View File

@ -1047,7 +1047,8 @@ namespace SqlSugar
if (this.QueryBuilder.Skip == null&&
this.QueryBuilder.Take == null&&
this.QueryBuilder.OrderByValue == null &&
this.QueryBuilder.PartitionByValue == null)
this.QueryBuilder.PartitionByValue == null&&
this.QueryBuilder.SelectValue==null)
{
return this.Clone().Select<int>(" COUNT(1) ").ToList().First();