IUnitOfWork.cs 459 B

123456789101112131415161718192021222324
  1. 
  2. using MTWorkHR.Core.Entities;
  3. using MTWorkHR.Core.IRepositories;
  4. using MTWorkHR.Core.IRepositories.Base;
  5. namespace MTWorkHR.Core.UnitOfWork
  6. {
  7. public interface IUnitOfWork
  8. {
  9. IPermissionRepository Permission { get; }
  10. ICompanyRepository Company { get; }
  11. Task<int> CompleteAsync();
  12. void BeginTran();
  13. void CommitTran();
  14. void RollbackTran();
  15. object GetRepositoryByName(string name);
  16. }
  17. }