diff --git a/Src/Asp.Net/SqlSugar/SimpleClient.cs b/Src/Asp.Net/SqlSugar/SimpleClient.cs index e0059f5ac..12feec343 100644 --- a/Src/Asp.Net/SqlSugar/SimpleClient.cs +++ b/Src/Asp.Net/SqlSugar/SimpleClient.cs @@ -135,6 +135,10 @@ namespace SqlSugar { return Context.Queryable().Where(whereExpression).Any(); } + public int Count(Expression> whereExpression){ + return Context.Queryable().Where(whereExpression).Count(); + } + public bool Insert(T insertObj) { return this.Context.Insertable(insertObj).ExecuteCommand() > 0;