C# Class PetShop.Data.DataRepository

Afficher le fichier Open project: netTiers/netTiers

Méthodes publiques

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

Méthode Description
DataRepository ( ) : System
GetDesignTimeConfig ( ) : Configuration
LoadProviders ( ) : void

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

Method Details

AddConnection() public static méthode

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

CreateTransaction() public méthode

Creates a new TransactionManager instance from the current datasource.
public CreateTransaction ( ) : TransactionManager
Résultat TransactionManager

LoadProvider() public static méthode

Enables the DataRepository to programatically create and pass in a NetTiersProvider during runtime.
public static LoadProvider ( NetTiersProvider provider ) : void
provider PetShop.Data.Bases.NetTiersProvider An instatiated NetTiersProvider.
Résultat void

LoadProvider() public static méthode

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