mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Aot bug
This commit is contained in:
@@ -121,7 +121,11 @@ namespace SqlSugar
|
||||
this.QueryBuilder.Includes == null &&
|
||||
this.QueryBuilder.IsDistinct == false)
|
||||
{
|
||||
|
||||
if (StaticConfig.EnableAot)
|
||||
{
|
||||
var sqlobj = this.Clone().Select<int>(" COUNT(1) ").ToSql();
|
||||
return this.Context.Ado.GetInt(sqlobj.Key,sqlobj.Value);
|
||||
}
|
||||
return this.Clone().Select<int>(" COUNT(1) ").ToList().FirstOrDefault();
|
||||
}
|
||||
MappingTableList expMapping;
|
||||
|
Reference in New Issue
Block a user