IUnitOfWork.cs 1.6 KB

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