1234567891011121314151617181920212223242526272829 |
-
- using MTWorkHR.Core.Entities;
- using MTWorkHR.Core.IRepositories;
- using MTWorkHR.Core.IRepositories.Base;
- namespace MTWorkHR.Core.UnitOfWork
- {
- public interface IUnitOfWork
- {
- IPermissionRepository Permission { get; }
- IProjectRepository Project { get; }
- IUserTaskRepository UserTask { get; }
- // IUserTaskAttachmentRepository UserTaskAttachment { get; }
- ITaskStatusRepository UserTaskStatus { get; }
- IUserTaskHistoryRepository UserTaskHistory { get; }
- ICompanyRepository Company { get; }
- Task<int> CompleteAsync();
- void BeginTran();
- void CommitTran();
- void RollbackTran();
- object GetRepositoryByName(string name);
- }
- }
|