Browse Source

-

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
e71b552797
  1. 5
      Src/Asp.Net/SqlSugar/SimpleClient.cs

5
Src/Asp.Net/SqlSugar/SimpleClient.cs

@ -176,10 +176,7 @@ namespace SqlSugar
{
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)
{
return Context.Queryable<T>().Where(whereExpression).ToList();

Loading…
Cancel
Save