mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-19 17:51:36 +08:00
-
This commit is contained in:
@@ -176,10 +176,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return Context.Queryable<T>().ToList();
|
return Context.Queryable<T>().ToList();
|
||||||
}
|
}
|
||||||
public int Count(Expression<Func<T, bool>> whereExpression)
|
|
||||||
{
|
|
||||||
return Context.Queryable<T>().Where(whereExpression).Count();
|
|
||||||
}
|
|
||||||
public List<T> GetList(Expression<Func<T, bool>> whereExpression)
|
public List<T> GetList(Expression<Func<T, bool>> whereExpression)
|
||||||
{
|
{
|
||||||
return Context.Queryable<T>().Where(whereExpression).ToList();
|
return Context.Queryable<T>().Where(whereExpression).ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user