This commit is contained in:
sunkaixuan
2019-04-10 19:35:41 +08:00
parent 8c08fa5cc1
commit e71b552797

View File

@@ -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();