C# Class DotNetMigrations.Program

Mostra file Open project: jpoehls/dotnetmigrations

Private Methods

Method Description
Main ( string args ) : int

Application entry point

Program ( ) : System
Program ( IConfigurationManager configManager ) : System

Program constructor, instantiates primary repository objects.

ProgramLaunchedInSeparateConsoleWindow ( ) : bool

Determines if the program was launched in a separate console window or whether it was run from within an existing console. i.e. launched by click the EXE in Windows Explorer or by typing db.exe at the command line

This method isn't full proof. http://support.microsoft.com/kb/99115 and http://stackoverflow.com/questions/510805/can-a-win32-console-application-detect-if-it-has-been-run-from-the-explorer-or-no

Run ( string args ) : int

Primary Program Execution

TestConsole ( ) : bool

Returns true/false whether a console window is available.

WriteAppUsageHelp ( string executableName ) : void

Writes usage help for the app to the logger.

WriteShortErrorMessages ( Exception ex ) : void
WriteValidationErrors ( string commandName, IEnumerable errors ) : void

Writes out all validation errors to the logger.