public void TestMigration() { //arrange var tableName = MigrationCommon.FindFreeTableName(ProviderName, ConnectionString); var migration = new DdlGeneratorFactory(SqlType.Db2).MigrationGenerator(); MigrationCommon.ExecuteScripts(ProviderName, ConnectionString, tableName, migration); }
public void TestMigration() { //arrange var tableName = MigrationCommon.FindFreeTableName(ProviderName, ConnectionString); var migration = new DdlGeneratorFactory(SqlType.MySql).MigrationGenerator(); //MySql DDL isn't transactional. Hope this works. MigrationCommon.ExecuteScripts(ProviderName, ConnectionString, tableName, migration); }
public void TestMigration() { var databaseFile = ConnectionStrings.SqLiteFilePath; var connectionString = "Data Source=" + databaseFile; //arrange var tableName = MigrationCommon.FindFreeTableName(ProviderName, connectionString); var migration = new DdlGeneratorFactory(SqlType.SQLite).MigrationGenerator(); MigrationCommon.ExecuteScripts(ProviderName, connectionString, tableName, migration); }
public void TestMigration() { //arrange const string connectionString = ConnectionStrings.OracleHr; var tableName = MigrationCommon.FindFreeTableName(ProviderName, connectionString); var migration = new DdlGeneratorFactory(SqlType.Oracle).MigrationGenerator(); //Oracle DDL isn't transactional. If it fails, you'll find my test tables in your database. MigrationCommon.ExecuteScripts(ProviderName, connectionString, tableName, migration); }