mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Optimal generation Queryable.Any
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user