C# 클래스 SimpleMigrations.Console.ConsoleRunner

Class which provides an easy way to run migrations from a console application
파일 보기 프로젝트 열기: canton7/SimpleMigrations 1 사용 예제들

공개 메소드들

메소드 설명
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