IUnitOfWork.cs 607 B

12345678910111213141516171819202122232425262728293031
  1. 
  2. using MTWorkHR.Core.Entities;
  3. using MTWorkHR.Core.IRepositories;
  4. using MTWorkHR.Core.IRepositories.Base;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Reflection;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace MTWorkHR.Core.UnitOfWork
  12. {
  13. public interface IUnitOfWork
  14. {
  15. IPermissionRepository Permission { get; }
  16. //IRepository<Employee> Employee { get; }
  17. Task<int> CompleteAsync();
  18. void BeginTran();
  19. void CommitTran();
  20. void RollbackTran();
  21. object GetRepositoryByName(string name);
  22. }
  23. }