C# Class Sharp.Migrations.Runners.ConsoleRunner

Datei anzeigen Open project: sharpmigrations/sharpmigrations Class Usage Examples

Protected Properties

Property Type Description
DatabaseProvider string
_assemblyWithMigrations System.Reflection.Assembly
_connectionString string
_targetVersion long

Public Methods

Method Description
ConsoleRunner ( string connectionString, string databaseProvider ) : System
ConsoleRunner ( string connectionString, string databaseProvider, string migrationGroup ) : System
Start ( ) : void

Protected Methods

Method Description
GetInfoFromUser ( ) : void
GetIntFromConsole ( string message ) : int
GetLongFromConsole ( string message ) : long
GetTargetVersion ( ) : void
ShowCurrentVersion ( long version ) : void
ShowError ( DatabaseException dex ) : void
TryRunMigrations ( ) : void

Private Methods

Method Description
GetRunner ( ) : Runner
RunMigrations ( ) : void
TerminateProgram ( ) : void

Method Details

ConsoleRunner() public method

public ConsoleRunner ( string connectionString, string databaseProvider ) : System
connectionString string
databaseProvider string
return System

ConsoleRunner() public method

public ConsoleRunner ( string connectionString, string databaseProvider, string migrationGroup ) : System
connectionString string
databaseProvider string
migrationGroup string
return System

GetInfoFromUser() protected method

protected GetInfoFromUser ( ) : void
return void

GetIntFromConsole() protected method

protected GetIntFromConsole ( string message ) : int
message string
return int

GetLongFromConsole() protected method

protected GetLongFromConsole ( string message ) : long
message string
return long

GetTargetVersion() protected method

protected GetTargetVersion ( ) : void
return void

ShowCurrentVersion() protected method

protected ShowCurrentVersion ( long version ) : void
version long
return void

ShowError() protected method

protected ShowError ( DatabaseException dex ) : void
dex Sharp.Data.DatabaseException
return void

Start() public method

public Start ( ) : void
return void

TryRunMigrations() protected method

protected TryRunMigrations ( ) : void
return void

Property Details

DatabaseProvider protected_oe property

protected string DatabaseProvider
return string

_assemblyWithMigrations protected_oe property

protected Assembly,System.Reflection _assemblyWithMigrations
return System.Reflection.Assembly

_connectionString protected_oe property

protected string _connectionString
return string

_targetVersion protected_oe property

protected long _targetVersion
return long