using System.Reflection;
using SqlSugar;

namespace Tiobon.Core.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);
}