C# Класс 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.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Factory IDataProviderFactory

Открытые методы

Метод Описание
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

Описание методов

GetDataProvider() публичный статический Метод

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"
Результат IDataProvider

Описание свойств

Factory публичное статическое свойство

public static IDataProviderFactory Factory
Результат IDataProviderFactory