IUnitOfWork.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. IProjectRepository Project { get; }
  11. IUserTaskRepository UserTask { get; }
  12. IUserTaskAttachmentRepository UserTaskAttachment { get; }
  13. ITaskStatusRepository UserTaskStatus { get; }
  14. IUserTaskHistoryRepository UserTaskHistory { get; }
  15. ICompanyRepository Company { get; }
  16. ITeamRepository Team{ get; }
  17. IMeetingRepository Meeting{ get; }
  18. IAttendanceRepository Attendance { get; }
  19. IOrderTypeRepository OrderType { get; }
  20. IOrderRequestRepository OrderRequest { get; }
  21. IOrderAllocationRepository OrderAllocation { get; }
  22. ILeaveTypeRepository LeaveType{ get; }
  23. ICountryLookupRepository CountryLookup { get; }
  24. IIndustryRepository Industry { get; }
  25. IJobTitleRepository JobTitle { get; }
  26. IUniversityRepository University { get; }
  27. ICityRepository City{ get; }
  28. IQualificationRepository Qualification { get; }
  29. ILoginOTPRepository LoginOTP { get; }
  30. Task<int> CompleteAsync();
  31. void BeginTran();
  32. void CommitTran();
  33. void RollbackTran();
  34. object GetRepositoryByName(string name);
  35. }
  36. }