Ejemplo n.º 1
0
 public SchemaInitializer(SqlServerDataStoreConfiguration sqlServerDataStoreConfiguration, SchemaUpgradeRunner schemaUpgradeRunner, SchemaInformation schemaInformation, ISqlConnectionFactory sqlConnectionFactory, ISqlConnectionStringProvider sqlConnectionStringProvider, IMediator mediator, ILogger <SchemaInitializer> logger)
 {
     _sqlServerDataStoreConfiguration = EnsureArg.IsNotNull(sqlServerDataStoreConfiguration, nameof(sqlServerDataStoreConfiguration));
     _schemaUpgradeRunner             = EnsureArg.IsNotNull(schemaUpgradeRunner, nameof(schemaUpgradeRunner));
     _schemaInformation           = EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));
     _sqlConnectionFactory        = EnsureArg.IsNotNull(sqlConnectionFactory, nameof(sqlConnectionFactory));
     _sqlConnectionStringProvider = EnsureArg.IsNotNull(sqlConnectionStringProvider, nameof(sqlConnectionStringProvider));
     _mediator = EnsureArg.IsNotNull(mediator, nameof(mediator));
     _logger   = EnsureArg.IsNotNull(logger, nameof(logger));
 }
        public SchemaInitializer(SqlServerDataStoreConfiguration sqlServerDataStoreConfiguration, SchemaUpgradeRunner schemaUpgradeRunner, SchemaInformation schemaInformation, ISqlConnectionFactory sqlConnectionFactory, ILogger <SchemaInitializer> logger)
        {
            EnsureArg.IsNotNull(sqlServerDataStoreConfiguration, nameof(sqlServerDataStoreConfiguration));
            EnsureArg.IsNotNull(schemaUpgradeRunner, nameof(schemaUpgradeRunner));
            EnsureArg.IsNotNull(schemaInformation, nameof(schemaInformation));
            EnsureArg.IsNotNull(sqlConnectionFactory, nameof(sqlConnectionFactory));
            EnsureArg.IsNotNull(logger, nameof(logger));

            _sqlServerDataStoreConfiguration = sqlServerDataStoreConfiguration;
            _schemaUpgradeRunner             = schemaUpgradeRunner;
            _schemaInformation    = schemaInformation;
            _sqlConnectionFactory = sqlConnectionFactory;
            _logger = logger;
        }