C# Class Drey.Configuration.Services.ConnectionStringsService

Inheritance: System.MarshalByRefObject, IConnectionStrings
Afficher le fichier Open project: dealproc/Drey

Méthodes publiques

Méthode 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 méthode

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.
Résultat Drey.Nut

Exists() public méthode

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.
Résultat bool

Register() public méthode

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.
Résultat void

this() public méthode

Gets the System.String with the specified key.
public this ( string key ) : string
key string The key.
Résultat string