C# Class Tiraggo.Interfaces.tgProviderFactory

Used to decouple the EntitySpaces DataProviders from your application.
Reflection is used only once to load and cache the provider. The information for the provider comes for the EntitySpaces configuration section of the config file, specifically the "provider" element. See the tgConnection class for more information.
显示文件 Open project: BrewDawg/Tiraggo

Public Properties

Property Type Description
Factory IDataProviderFactory

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 the Microsoft TransactionScope class is used

Method Details

GetDataProvider() public static 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 the Microsoft TransactionScope class is used
public static 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

Property Details

Factory public_oe static_oe property

public static IDataProviderFactory Factory
return IDataProviderFactory