Esempio n. 1
0
 public StockRepository(IOptions <StockOptions> options, ILogger <StockRepository> logger)
     : base(options.Value.ConnectionString)
 {
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _options = options.Value;
 }
Esempio n. 2
0
 public UserRepository(IOptions <StockOptions> options)
     : base(options.Value.ConnectionString)
 {
     _options = options.Value;
 }