Optimal generation Queryable.Any

This commit is contained in:
sunkaixuna
2021-11-04 19:12:24 +08:00
parent ad977bc1ee
commit d47fcdfe90

View File

@@ -825,7 +825,7 @@ namespace SqlSugar
}
public virtual bool Any()
{
return this.Count() > 0;
return this.Select("1").First()!=null;
}
public virtual ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression)