C# Class Tiraggo.Loader.tgDataProviderFactory

Inheritance: IDataProviderFactory
Show file Open project: BrewDawg/Tiraggo

Public Methods

Method Description
GetDataProvider ( string providerName, string providerClass ) : IDataProvider

Loads and Caches the EntitySpaces DataProvider.

The providerClass parameter determines whether or not distributed transactions are used or if ADO.NET connection based transactions are used. When "DataProvider" is used the tgTransactionScope class is used to enforce transactions. When "DataProviderEnterprise" is used then TransactionScope is used

Private Methods

Method Description
LoadSQLiteProvider ( string providerClass ) : IDataProvider

Method Details

GetDataProvider() public method

Loads and Caches the EntitySpaces DataProvider.
The providerClass parameter determines whether or not distributed transactions are used or if ADO.NET connection based transactions are used. When "DataProvider" is used the tgTransactionScope class is used to enforce transactions. When "DataProviderEnterprise" is used then TransactionScope is used
public GetDataProvider ( string providerName, string providerClass ) : IDataProvider
providerName string The name of the EntitySpaces DataProvider, for example, "Tiraggo.SqlClientProvider"
providerClass string The class to use, either "DataProvider" or "DataProviderEnterprise"
return IDataProvider