C# 클래스 PetShop.Data.DataRepository

파일 보기 프로젝트 열기: netTiers/netTiers

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
DataRepository ( ) : System
GetDesignTimeConfig ( ) : Configuration
LoadProviders ( ) : void

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

메소드 상세

AddConnection() 공개 정적인 메소드

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.
리턴 void

CreateTransaction() 공개 메소드

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

LoadProvider() 공개 정적인 메소드

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.
리턴 void

LoadProvider() 공개 정적인 메소드

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.
리턴 void