IUnitOfWork.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. Task<int> CompleteAsync();
  35. void BeginTran();
  36. void CommitTran();
  37. void RollbackTran();
  38. object GetRepositoryByName(string name);
  39. }
  40. }