mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-24 05:42:01 +08:00
Optimized code
This commit is contained in:
@@ -93,7 +93,7 @@ namespace SqlSugar
|
||||
}
|
||||
public virtual bool Any()
|
||||
{
|
||||
return this.Select("1").ToList().Count() > 0;
|
||||
return this.Take(1).Select("1").ToList().Count() > 0;
|
||||
}
|
||||
|
||||
public virtual List<TResult> ToList<TResult>(Expression<Func<T, TResult>> expression)
|
||||
|
||||
Reference in New Issue
Block a user