コード例 #1
0
 public virtual void Initialize(MigrationContext context)
 {
     _configuration         = context.Configuration;
     _schemaProvider        = context.SchemaProvider;
     _databaseProvider      = context.DatabaseProvider;
     _commonTransformations = context.CommonTransformations;
     _connectionProvider    = context.ConnectionProvider;
 }
コード例 #2
0
 public MigrationInitializer(IConfiguration configuration, IDatabaseProvider databaseProvider, ISchemaProvider schemaProvider, ICommonTransformations commonTransformations, IConnectionProvider connectionProvider)
 {
     _configuration         = configuration;
     _commonTransformations = commonTransformations;
     _databaseProvider      = databaseProvider;
     _schemaProvider        = schemaProvider;
     _connectionProvider    = connectionProvider;
 }
コード例 #3
0
		public void Initialize(MigrationContext context)
		{
			_configuration = context.Configuration;
			_schemaProvider = context.SchemaProvider;
			_databaseProvider = context.DatabaseProvider;
			_commonTransformations = context.CommonTransformations;
			_connectionProvider = context.ConnectionProvider;
		}
コード例 #4
0
 public MigrationInitializer(IConfiguration configuration, IDatabaseProvider databaseProvider, ISchemaProvider schemaProvider, ICommonTransformations commonTransformations, IConnectionProvider connectionProvider)
 {
   _configuration = configuration;
   _commonTransformations = commonTransformations;
   _databaseProvider = databaseProvider;
   _schemaProvider = schemaProvider;
   _connectionProvider = connectionProvider;
 }
コード例 #5
0
        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));
        }
コード例 #6
0
 public DisableIdentityInsertion(ICommonTransformations commonTransformations, string table)
 {
     _commonTransformations = commonTransformations;
       _table = table;
 }
コード例 #7
0
 public DisableIdentityInsertion(ICommonTransformations commonTransformations, string table)
 {
     _commonTransformations = commonTransformations;
     _table = table;
 }