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

        }