ArgumentRepository Class

Namespace: DotNetMigrations.Repositories
Access: Internal
Inherits/Implements: IArgumentRepository (interface)

Overview:

The ArgumentRepository class was created to encapsulate parsing and retrieving of command line attributes.

Public Methods/Properties

NamePurposeNotes
ArgumentsA property that contains the original string array of arguments
CountRetrieves the length of the argument array
HasArgumentsA simple property that checks to see if there's arguments or not in the collectionSince a command's name is passed as the first parameter, this will only be false if no command name was passed.
GetArgumentRetrieves and argument by it's indexed value
GetLastArgumentRetrieves the last convention of the arraySince current convention is to have the connection string passed as the final argument, an easy way of abstracting it was implemented.