C# Class Drey.AppConfigConnectionStrings

Allows access to the connection strings element in the app.config of the runtime.
Inheritance: System.MarshalByRefObject, IConnectionStrings
Mostra file Open project: dealproc/Drey

Public Methods

Method Description
Exists ( string name ) : bool

Checks to see if a specific key exists in the underlying store.

Register ( string name, string connectionString, string providerName = "" ) : void

Registers a connection string, with a given "name" and provider name.

this ( string key ) : string

Gets the connection string for the given key.

Method Details

Exists() public method

Checks to see if a specific key exists in the underlying store.
public Exists ( string name ) : bool
name string The name.
return bool

Register() public method

Registers a connection string, with a given "name" and provider name.
public Register ( string name, string connectionString, string providerName = "" ) : void
name string The name.
connectionString string The connection string.
providerName string Name of the provider.
return void

this() public method

Gets the connection string for the given key.
public this ( string key ) : string
key string The key.
return string