mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-01 19:03:58 +08:00
Any Bug
This commit is contained in:
@@ -60,6 +60,8 @@ namespace OrmTest.Demo
|
||||
var getByPrimaryKey = db.Queryable<Student>().InSingle(2);
|
||||
var getByWhere = db.Queryable<Student>().Where(it => it.Id == 1 || it.Name == "a").ToList();
|
||||
var getByFuns = db.Queryable<Student>().Where(it => NBORM.IsNullOrEmpty(it.Name)).ToList();
|
||||
var sum = db.Queryable<Student>().Sum(it=>it.Id);
|
||||
var isAny = db.Queryable<Student>().Where(it=>it.Id==-1).Any();
|
||||
}
|
||||
|
||||
public static void Page()
|
||||
|
||||
@@ -395,7 +395,7 @@ namespace SqlSugar
|
||||
|
||||
public bool Any()
|
||||
{
|
||||
return this.ToList().IsValuable();
|
||||
return this.Count()>0;
|
||||
}
|
||||
|
||||
public ISugarQueryable<TResult> Select<T2, TResult>(Expression<Func<T2, TResult>> expression)
|
||||
|
||||
Reference in New Issue
Block a user