C# Класс Drey.Configuration.Services.ConnectionStringsService

Наследование: System.MarshalByRefObject, IConnectionStrings
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ConnectionStringsService() публичный Метод

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.
Результат Drey.Nut

Exists() публичный Метод

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.
Результат bool

Register() публичный Метод

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.
Результат void

this() публичный Метод

Gets the System.String with the specified key.
public this ( string key ) : string
key string The key.
Результат string