mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update SimpleClient
This commit is contained in:
@@ -39,6 +39,10 @@ namespace SqlSugar
|
|||||||
page.PageCount = count;
|
page.PageCount = count;
|
||||||
return result;
|
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()
|
public bool Insert<T>(T insertObj) where T : class, new()
|
||||||
{
|
{
|
||||||
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
||||||
@@ -113,6 +117,10 @@ namespace SqlSugar
|
|||||||
page.PageCount = count;
|
page.PageCount = count;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
public bool IsAny(Expression<Func<T, bool>> whereExpression)
|
||||||
|
{
|
||||||
|
return Context.Queryable<T>().Where(whereExpression).Any();
|
||||||
|
}
|
||||||
public bool Insert(T insertObj)
|
public bool Insert(T insertObj)
|
||||||
{
|
{
|
||||||
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
return this.Context.Insertable(insertObj).ExecuteCommand() > 0;
|
||||||
|
Reference in New Issue
Block a user