Update SimpleClient

This commit is contained in:
sunkaixuan 2018-01-30 20:01:21 +08:00
parent ee0876ee8e
commit 06002151fa

View File

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