public virtual void Initialize(MigrationContext context) { _configuration = context.Configuration; _schemaProvider = context.SchemaProvider; _databaseProvider = context.DatabaseProvider; _commonTransformations = context.CommonTransformations; _connectionProvider = context.ConnectionProvider; }
public MigrationInitializer(IConfiguration configuration, IDatabaseProvider databaseProvider, ISchemaProvider schemaProvider, ICommonTransformations commonTransformations, IConnectionProvider connectionProvider) { _configuration = configuration; _commonTransformations = commonTransformations; _databaseProvider = databaseProvider; _schemaProvider = schemaProvider; _connectionProvider = connectionProvider; }
public void Initialize(MigrationContext context) { _configuration = context.Configuration; _schemaProvider = context.SchemaProvider; _databaseProvider = context.DatabaseProvider; _commonTransformations = context.CommonTransformations; _connectionProvider = context.ConnectionProvider; }
public override MigrationInitializer Create() { _databaseProvider = _mocks.StrictMock <IDatabaseProvider>(); _schemaProvider = _mocks.StrictMock <ISchemaProvider>(); _migration = _mocks.StrictMock <IDatabaseMigration>(); _configuration = _mocks.StrictMock <IConfiguration>(); _commonTransformations = _mocks.StrictMock <ICommonTransformations>(); _connectionProvider = _mocks.StrictMock <IConnectionProvider>(); return(new MigrationInitializer(_configuration, _databaseProvider, _schemaProvider, _commonTransformations, _connectionProvider)); }
public DisableIdentityInsertion(ICommonTransformations commonTransformations, string table) { _commonTransformations = commonTransformations; _table = table; }