IUnitOfWork.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. IContractRepository Contract { get; }
  35. IHubConnectionRepository HubConnection { get; }
  36. Task<int> CompleteAsync();
  37. void BeginTran();
  38. void CommitTran();
  39. void RollbackTran();
  40. object GetRepositoryByName(string name);
  41. }
  42. }