新增加storage方法

This commit is contained in:
不做码农 2022-05-07 22:16:59 +08:00
parent 83e0ba7892
commit 464f74914f
2 changed files with 10 additions and 2 deletions

View File

@ -149,7 +149,14 @@ namespace ZR.Repository
throw; throw;
} }
} }
public IStorageable<T> Storageable(T t)
{
return Context.Storageable<T>(t);
}
public IStorageable<T> Storageable(List<T> t)
{
return Context.Storageable(t);
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>

View File

@ -37,7 +37,8 @@ namespace ZR.Repository
int Update(Expression<Func<T, bool>> where, Expression<Func<T, T>> columns); int Update(Expression<Func<T, bool>> where, Expression<Func<T, T>> columns);
#endregion update #endregion update
IStorageable<T> Storageable(T t);
IStorageable<T> Storageable(List<T> t);
DbResult<bool> UseTran(Action action); DbResult<bool> UseTran(Action action);
DbResult<bool> UseTran(SqlSugarClient client, Action action); DbResult<bool> UseTran(SqlSugarClient client, Action action);