init
This commit is contained in:
20
DouyinApi.Repository/UnitOfWorks/IUnitOfWorkManage.cs
Normal file
20
DouyinApi.Repository/UnitOfWorks/IUnitOfWorkManage.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Reflection;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DouyinApi.Repository.UnitOfWorks
|
||||
{
|
||||
public interface IUnitOfWorkManage
|
||||
{
|
||||
SqlSugarScope GetDbClient();
|
||||
int TranCount { get; }
|
||||
|
||||
UnitOfWork CreateUnitOfWork();
|
||||
|
||||
void BeginTran();
|
||||
void BeginTran(MethodInfo method);
|
||||
void CommitTran();
|
||||
void CommitTran(MethodInfo method);
|
||||
void RollbackTran();
|
||||
void RollbackTran(MethodInfo method);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user