DirectMigrateUp() public method

public DirectMigrateUp ( IMigration migration ) : void
migration IMigration
return void
コード例 #1
0
ファイル: AddressTestBO.cs プロジェクト: Chillisoft/habanero
        public static void CreateContactPersonAddressTable(string cpAddressTableName, string cpTableName)
        {
             if (BORegistry.DataAccessor is DataAccessorInMemory)
            {
                return;
            }
            if (BORegistry.DataAccessor is DataAccessorMultiSource)
            {
                return;
            }

            var databaseConfig = MyDBConnection.GetDatabaseConfig();
            var migrator = new Migrator(databaseConfig);
            migrator.DirectMigrateUp(new Migration_Temp_ContactPersonAddress(cpAddressTableName, cpTableName));

        }