public RoleService(ISysRoleRepository roleRepository, ISysModuleRepository moduleRepository, ISysModuleOperateRepository moduleOperateRepository, ISysFunctionRightRepository functionRightRepository, IUnitOfWork unitOfWork) { this._unitOfWork = unitOfWork; this._roleRepository = roleRepository; this._moduleOperateRepository = moduleOperateRepository; this._moduleRepository = moduleRepository; this._functionRightRepository = functionRightRepository; this._roleRepository.UnitOfWork = unitOfWork; this._moduleRepository.UnitOfWork = unitOfWork; this._moduleOperateRepository.UnitOfWork = unitOfWork; this._functionRightRepository.UnitOfWork = unitOfWork; }