This commit is contained in:
454313500@qq.com
2021-03-20 15:02:23 +08:00
parent 59a42ae48f
commit 2e5b991db0
7 changed files with 95 additions and 88 deletions

View File

@@ -19,7 +19,13 @@ namespace CC.Yi.DAL
return Db.Set<T>().Where(whereLambda).AsQueryable();
}
public int GetCount(Expression<Func<T, bool>> whereLambda) //统计数量
public IQueryable<T> GetAllEntities()
{
return Db.Set<T>().AsQueryable();
}
public int GetCount(Expression<Func<T, bool>> whereLambda)
{
return Db.Set<T>().Where(whereLambda).Count();
}