示例#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>();
 }