C# Class Drey.Configuration.Services.ConnectionStringsService

Inheritance: System.MarshalByRefObject, IConnectionStrings
ファイルを表示 Open project: dealproc/Drey

Public Methods

Method Description
ConnectionStringsService ( string packageId, Repositories connectionStringsRepository ) : Drey.Nut

Initializes a new instance of the ConnectionStringsService class.

Exists ( string name ) : bool

Checks to see if a specific connection string exists within the repository, by its given name.

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

Registers a connection string with the underlying repository.

this ( string key ) : string

Gets the System.String with the specified key.

Method Details

ConnectionStringsService() public method

Initializes a new instance of the ConnectionStringsService class.
public ConnectionStringsService ( string packageId, Repositories connectionStringsRepository ) : Drey.Nut
packageId string The package identifier.
connectionStringsRepository Repositories The connection strings repository.
return Drey.Nut

Exists() public method

Checks to see if a specific connection string exists within the repository, by its given name.
public Exists ( string name ) : bool
name string The name.
return bool

Register() public method

Registers a connection string with the underlying repository.
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 System.String with the specified key.
public this ( string key ) : string
key string The key.
return string