public SchemaUpgradeRunner( IScriptProvider scriptProvider, IBaseScriptProvider baseScriptProvider, IMediator mediator, ILogger <SchemaUpgradeRunner> logger, ISqlConnectionFactory sqlConnectionFactory) { EnsureArg.IsNotNull(scriptProvider, nameof(scriptProvider)); EnsureArg.IsNotNull(baseScriptProvider, nameof(baseScriptProvider)); EnsureArg.IsNotNull(mediator, nameof(mediator)); EnsureArg.IsNotNull(logger, nameof(logger)); EnsureArg.IsNotNull(sqlConnectionFactory, nameof(sqlConnectionFactory)); _scriptProvider = scriptProvider; _baseScriptProvider = baseScriptProvider; _mediator = mediator; _logger = logger; _sqlConnectionFactory = sqlConnectionFactory; }
public SchemaUpgradeRunner( IScriptProvider scriptProvider, IBaseScriptProvider baseScriptProvider, ILogger <SchemaUpgradeRunner> logger, ISqlConnectionFactory sqlConnectionFactory, ISchemaManagerDataStore schemaManagerDataStore) { EnsureArg.IsNotNull(scriptProvider, nameof(scriptProvider)); EnsureArg.IsNotNull(baseScriptProvider, nameof(baseScriptProvider)); EnsureArg.IsNotNull(logger, nameof(logger)); EnsureArg.IsNotNull(sqlConnectionFactory, nameof(sqlConnectionFactory)); EnsureArg.IsNotNull(schemaManagerDataStore, nameof(schemaManagerDataStore)); _scriptProvider = scriptProvider; _baseScriptProvider = baseScriptProvider; _logger = logger; _sqlConnectionFactory = sqlConnectionFactory; _schemaManagerDataStore = schemaManagerDataStore; }