IUnitOfWork.cs 1.5 KB

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