Пример #1
0
        }                                                                                                  //TODO:~ UNDELETABLE

        public MsSqlDataProvider(IOptions <DataOptions> dataOptions, IOptions <ConnectionStringOptions> connectionOptions,
                                 IDataInstaller dataInstaller)
        {
            DataInstaller     = dataInstaller ?? throw new ArgumentNullException(nameof(dataInstaller));
            DataOptions       = dataOptions.Value;
            ConnectionStrings = connectionOptions.Value;
        }
Пример #2
0
        }                                                                                                  //TODO:~ UNDELETABLE

        public MsSqlDataProvider(IOptions <DataOptions> dataOptions, IOptions <ConnectionStringOptions> connectionOptions,
                                 IOptions <MsSqlDatabaseInstallationOptions> dbInstallerOptions, MsSqlDatabaseInstaller databaseInstaller,
                                 IDataInstaller dataInstaller,
                                 ILogger <MsSqlDataProvider> logger)
        {
            DataInstaller       = dataInstaller ?? throw new ArgumentNullException(nameof(dataInstaller));
            DataOptions         = dataOptions.Value;
            _dbInstallerOptions = dbInstallerOptions.Value;
            _databaseInstaller  = databaseInstaller;
            ConnectionStrings   = connectionOptions;
            _logger             = logger;
        }