mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update SimpleClient
This commit is contained in:
parent
ee0876ee8e
commit
06002151fa
@ -39,6 +39,10 @@ namespace SqlSugar
|
||||
page.PageCount = count;
|
||||
return result;
|
||||
}
|
||||
public bool IsAny<T>(Expression<Func<T, bool>> whereExpression) where T : class, new()
|
||||
{
|
||||
return Context.Queryable<T>().Where(whereExpression).Any();
|
||||
}
|
||||
public bool Insert<T>(T insertObj) where T : class, new()
|
||||
{
|
||||
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
||||
@ -113,6 +117,10 @@ namespace SqlSugar
|
||||
page.PageCount = count;
|
||||
return result;
|
||||
}
|
||||
public bool IsAny(Expression<Func<T, bool>> whereExpression)
|
||||
{
|
||||
return Context.Queryable<T>().Where(whereExpression).Any();
|
||||
}
|
||||
public bool Insert(T insertObj)
|
||||
{
|
||||
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
||||
|
Loading…
Reference in New Issue
Block a user