fix Queryable.Any

This commit is contained in:
et
2022-01-18 16:39:35 +08:00
parent b223d949f1
commit 8758b7ee0c

View File

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