コード例 #1
0
 private static void EnsureDatabaseMigrated(DatabaseConfig databaseConfig)
 {
     var migrator = new Migrator(databaseConfig);
     migrator.EnsureDatabseExists();    
     migrator.MigrateToLatest();
 }
コード例 #2
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));

        }