Optimized code

This commit is contained in:
sunkaixuan
2024-02-24 16:12:27 +08:00
parent ec61a12ed2
commit b8b6f03466

View File

@@ -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)