IUnitOfWork.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. ITeamUserRepository TeamUser{ get; }
  17. ITeamRepository Team { get; }
  18. IMeetingRepository Meeting{ get; }
  19. IAttendanceRepository Attendance { get; }
  20. IOrderTypeRepository OrderType { get; }
  21. IOrderRequestRepository OrderRequest { get; }
  22. IOrderAllocationRepository OrderAllocation { get; }
  23. ILeaveTypeRepository LeaveType{ get; }
  24. ICountryLookupRepository CountryLookup { get; }
  25. IIndustryRepository Industry { get; }
  26. IJobTitleRepository JobTitle { get; }
  27. IUniversityRepository University { get; }
  28. ICityRepository City{ get; }
  29. IQualificationRepository Qualification { get; }
  30. ILoginOTPRepository LoginOTP { get; }
  31. Task<int> CompleteAsync();
  32. void BeginTran();
  33. void CommitTran();
  34. void RollbackTran();
  35. object GetRepositoryByName(string name);
  36. }
  37. }