C# Класс SimpleMigrations.Console.ConsoleRunner

Class which provides an easy way to run migrations from a console application
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
CreateSubCommands ( ) : void

Assign SubCommands (and optionally DefaultSubCommand)

Приватные методы

Метод Описание
Baseline ( List args ) : void
ListMigrations ( List args ) : void
MigrateTo ( List args ) : void
MigrateUp ( List args ) : void
ReApply ( List args ) : void

Описание методов

ConsoleRunner() публичный Метод

Instantiates a new instance of the ConsoleLogger class
public ConsoleRunner ( ISimpleMigrator migrator ) : System.Linq
migrator ISimpleMigrator Migrator to use
Результат System.Linq

CreateSubCommands() защищенный Метод

Assign SubCommands (and optionally DefaultSubCommand)
protected CreateSubCommands ( ) : void
Результат void

ParseVersion() публичный статический Метод

Parse a migration version from a string
public static ParseVersion ( string input ) : long
input string String to parse
Результат long

Run() публичный Метод

Run the ConsoleRunner with the given command-line arguments
public Run ( string args ) : void
args string Command-line arguments to use
Результат void

ShowHelp() публичный Метод

Show help
public ShowHelp ( ) : void
Результат void