C# Class Nettiers.AdventureWorks.Data.DataRepository

Mostrar archivo Open project: netTiers/netTiers

Public Methods

Method Description
AddConnection ( String connectionStringName, String connectionString ) : void

Adds the specified connection string to the map of connection strings.

CreateTransaction ( ) : TransactionManager

Creates a new TransactionManager instance from the current datasource.

LoadProvider ( NetTiersProvider provider ) : void

Enables the DataRepository to programatically create and pass in a NetTiersProvider during runtime.

LoadProvider ( NetTiersProvider provider, bool setAsDefault ) : void

Enables the DataRepository to programatically create and pass in a NetTiersProvider during runtime.

Private Methods

Method Description
DataRepository ( ) : System
GetDesignTimeConfig ( ) : Configuration
LoadProviders ( ) : void

Configuration based provider loading, will load the providers on first call.

Method Details

AddConnection() public static method

Adds the specified connection string to the map of connection strings.
public static AddConnection ( String connectionStringName, String connectionString ) : void
connectionStringName String The connection string name.
connectionString String The provider specific connection information.
return void

CreateTransaction() public method

Creates a new TransactionManager instance from the current datasource.
public CreateTransaction ( ) : TransactionManager
return TransactionManager

LoadProvider() public static method

Enables the DataRepository to programatically create and pass in a NetTiersProvider during runtime.
public static LoadProvider ( NetTiersProvider provider ) : void
provider NetTiersProvider An instatiated NetTiersProvider.
return void

LoadProvider() public static method

Enables the DataRepository to programatically create and pass in a NetTiersProvider during runtime.
public static LoadProvider ( NetTiersProvider provider, bool setAsDefault ) : void
provider NetTiersProvider An instatiated NetTiersProvider.
setAsDefault bool ability to set any valid provider as the default provider for the DataRepository.
return void