예제 #1
0
 internal APersonService(IUnitofWork uow)
 {
     _uow              = uow;
     _taskRepository   = uow.GetRepository <Task>();
     _lookupRepository = uow.GetRepository <Lookup>();
     _personRepository = uow.GetRepository <Person>();
     _objectRawSql     = uow.GetRawSql <object>();
 }
예제 #2
0
 public UtilityService(IUnitofWork uow)
 {
     _parametersRepository = uow.GetRepository <Parameters>();
     _lookupListRepository = uow.GetRepository <LookupList>();
     _taskRepository       = uow.GetRepository <Task>();
     _personRepository     = uow.GetRepository <Person>();
     _unitRepository       = uow.GetRepository <Unit>();
     _projectRepository    = uow.GetRepository <Project>();
     _objectRawSql         = uow.GetRawSql <object>();
 }
예제 #3
0
 public WorkService(IUnitofWork uow)
 {
     _taskRepository        = uow.GetRepository <Task>();
     _taskMediaRepository   = uow.GetRepository <TaskMedia>();
     _taskHistoryRepository = uow.GetRepository <TaskHistory>();
     _commentRepository     = uow.GetRepository <Comment>();
     _personRepository      = uow.GetRepository <Person>();
     _projectRepository     = uow.GetRepository <Project>();
     _lookupListRepository  = uow.GetRepository <LookupList>();
     _mediaRepository       = uow.GetRepository <Media>();
     _unitRepository        = uow.GetRepository <Unit>();
     _objectRawSql          = uow.GetRawSql <object>();
 }