public GenericUnitOfWork(KoopDbContext koopDbContext, IMapper mapper, IAuthService authService) { _koopDbContext = koopDbContext; _mapper = mapper; _repositories = new Dictionary <Type, object>(); _repositoriesView = new Dictionary <Type, object>(); _shopRepository = new ShopRepository(_koopDbContext, mapper); _authService = authService; }
public ShopRepository(KoopDbContext koopDbContext, IMapper mapper) { _koopDbContext = koopDbContext; _mapper = mapper; }
public GenericRepository(KoopDbContext koopDbContext) { _koopDbContext = koopDbContext; _objectSet = _koopDbContext.Set <T>(); }