C# Class SimpleMigrations.Console.ConsoleRunner

Class which provides an easy way to run migrations from a console application
ファイルを表示 Open project: canton7/SimpleMigrations Class Usage Examples

Public Methods

Method Description
ConsoleRunner ( ISimpleMigrator migrator ) : System.Linq

Instantiates a new instance of the ConsoleLogger class

ParseVersion ( string input ) : long

Parse a migration version from a string

Run ( string args ) : void

Run the ConsoleRunner with the given command-line arguments

ShowHelp ( ) : void

Show help

Protected Methods

Method Description
CreateSubCommands ( ) : void

Assign SubCommands (and optionally DefaultSubCommand)

Private Methods

Method Description
Baseline ( List args ) : void
ListMigrations ( List args ) : void
MigrateTo ( List args ) : void
MigrateUp ( List args ) : void
ReApply ( List args ) : void

Method Details

ConsoleRunner() public method

Instantiates a new instance of the ConsoleLogger class
public ConsoleRunner ( ISimpleMigrator migrator ) : System.Linq
migrator ISimpleMigrator Migrator to use
return System.Linq

CreateSubCommands() protected method

Assign SubCommands (and optionally DefaultSubCommand)
protected CreateSubCommands ( ) : void
return void

ParseVersion() public static method

Parse a migration version from a string
public static ParseVersion ( string input ) : long
input string String to parse
return long

Run() public method

Run the ConsoleRunner with the given command-line arguments
public Run ( string args ) : void
args string Command-line arguments to use
return void

ShowHelp() public method

Show help
public ShowHelp ( ) : void
return void