This project is read-only.

ArgumentRepository Class

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


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.

Last edited Jan 30, 2010 at 12:59 AM by JamesEggers, version 1


No comments yet.