mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Merge branch 'dev' of https://github.com/sunkaixuan/SqlSugar
This commit is contained in:
@@ -135,6 +135,11 @@ namespace SqlSugar
|
||||
{
|
||||
return Context.Queryable<T>().Where(whereExpression).Any();
|
||||
}
|
||||
public int Count(Expression<Func<T,bool>> whereExpression){
|
||||
|
||||
return Context.Queryable<T>().Where(whereExpression).Count();
|
||||
}
|
||||
|
||||
public bool Insert(T insertObj)
|
||||
{
|
||||
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
||||
|
||||
Reference in New Issue
Block a user