public EfUserDal(PostgresqlContext dataContext) : base(dataContext) { _dataContext = dataContext; }
public ServiceController(IOptions <PostgresConfiguration> postgresConfiguration, ILogger <ServiceController> logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _db = new PostgresqlContext(postgresConfiguration); }
public WidgetsController(IOptions <PostgresConfiguration> postgresConfiguration, IOptions <WidgetConfiguration> widgetConfiguration, ILogger <ServiceController> logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _widgetConfiguration = widgetConfiguration.Value ?? throw new ArgumentNullException(nameof(widgetConfiguration)); _db = new PostgresqlContext(postgresConfiguration); }
public EfPasswordResetDal(PostgresqlContext dataContext) : base(dataContext) { }