Пример #1
0
 public ExchangeRateRepository(CurrencyContext dbContext,
                               IMapper mapper)
 {
     this.dbContext          = dbContext;
     this.mapper             = mapper;
     this.exchangeRatesDbSet = dbContext.Set <Database.Entities.ExchangeRate>();
 }
Пример #2
0
 public ApiKeyRepository(CurrencyContext dbContext)
 {
     this.dbContext = dbContext;
     apiKeyDbSet    = dbContext.Set <ApiKey>();
 }