C# Class Habanero.Test.Migrations.Migrator

Show file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
DirectMigrateUp ( IMigration migration ) : void
EnsureDatabseExists ( ) : void
MigrateToLatest ( ) : void
Migrator ( DatabaseConfig databaseConfig ) : System

Private Methods

Method Description
CreateMigrationRunner ( ) : FluentMigrator.Runner.MigrationRunner
GetMigrationProcessor ( ) : IMigrationProcessor
GetMigrationProcessorFactory ( IDatabaseConfig databaseConfig ) : IMigrationProcessorFactory
TableExists ( string tableName ) : bool

Method Details

DirectMigrateUp() public method

public DirectMigrateUp ( IMigration migration ) : void
migration IMigration
return void

EnsureDatabseExists() public method

public EnsureDatabseExists ( ) : void
return void

MigrateToLatest() public method

public MigrateToLatest ( ) : void
return void

Migrator() public method

public Migrator ( DatabaseConfig databaseConfig ) : System
databaseConfig Habanero.DB.DatabaseConfig
return System