添加事务、完善注释

This commit is contained in:
橙子
2022-04-13 21:36:50 +08:00
parent 04a3b1b01f
commit d51d31899f
6 changed files with 77 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ namespace Yi.Framework.Repository
public interface IRepository<T> : ISimpleClient<T> where T : BaseModelEntity,new()
{
public ISqlSugarClient _Db { get; set; }
public Task<bool> UseTranAsync(Func<Task> func);
public Task<T> InsertReturnEntityAsync(T entity);
public Task<List<S>> StoreAsync<S>(string storeName, object para);
public Task<PageModel<List<T>>> CommonPageAsync(QueryPageCondition pars);