C# Class Nettiers.AdventureWorks.Data.DataRepository.ConnectionProvider

Provides ability to switch connection string at runtime.
Mostrar archivo Open project: netTiers/netTiers

Public Methods

Method Description
ConnectionProvider ( String connectionStringName, String connectionString ) : System

Initializes a new instance of the ConnectionProvider class.

Private Methods

Method Description
LoadProviders ( ) : void

Instantiates the configured providers based on the supplied connection string.

Method Details

ConnectionProvider() public method

Initializes a new instance of the ConnectionProvider class.
public ConnectionProvider ( String connectionStringName, String connectionString ) : System
connectionStringName String The connection string name.
connectionString String The provider specific connection information.
return System