Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Argument repository

jpoehls edited this page Aug 29, 2010 · 1 revision

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

Name Purpose Notes
Arguments A property that contains the original string array of arguments
Count Retrieves the length of the argument array
HasArguments A simple property that checks to see if there’s arguments or not in the collection Since a command’s name is passed as the first parameter, this will only be false if no command name was passed.
GetArgument Retrieves and argument by it’s indexed value
GetLastArgument Retrieves the last convention of the array Since current convention is to have the connection string passed as the final argument, an easy way of abstracting it was implemented.
Clone this wiki locally