C# Class SimpleMigrations.Console.ConsoleRunner

Class which provides an easy way to run migrations from a console application
Afficher le fichier Open project: canton7/SimpleMigrations Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateSubCommands ( ) : void

Assign SubCommands (and optionally DefaultSubCommand)

Private Methods

Méthode 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 méthode

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

CreateSubCommands() protected méthode

Assign SubCommands (and optionally DefaultSubCommand)
protected CreateSubCommands ( ) : void
Résultat void

ParseVersion() public static méthode

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

Run() public méthode

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

ShowHelp() public méthode

Show help
public ShowHelp ( ) : void
Résultat void