Exemplo n.º 1
0
        //DI must be implemented in specific service as well beside GenericService constructor

        //add here any custom service method or override generic service method
        public TaxAccountNumberServiceAsync(ISlaveUnitOfWork unitOfWork, IMapper mapper) : base(unitOfWork, mapper)
        {
            if (_unitOfWork == null)
            {
                _unitOfWork = unitOfWork;
            }
            if (_mapper == null)
            {
                _mapper = mapper;
            }
        }
 public SlaveGenericServiceAsync(ISlaveUnitOfWork unitOfWork, IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
 public SlaveRepository(ISlaveUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }