Update SimpleClient

This commit is contained in:
sunkaixuna 2021-11-10 12:49:44 +08:00
parent 42eafeb1f6
commit 338ce461f3
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ namespace SqlSugar
ITenant AsTenant();
IUpdateable<T> AsUpdateable(List<T> updateObjs);
IUpdateable<T> AsUpdateable(T updateObj);
IUpdateable<T> AsUpdateable();
IUpdateable<T> AsUpdateable(T[] updateObjs);
int Count(Expression<Func<T, bool>> whereExpression);
bool Delete(Expression<Func<T, bool>> whereExpression);

View File

@ -74,6 +74,10 @@ namespace SqlSugar
{
return Context.Updateable<T>(updateObjs);
}
public IUpdateable<T> AsUpdateable()
{
return Context.Updateable<T>();
}
public IDeleteable<T> AsDeleteable()
{
return Context.Deleteable<T>();