[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.ReportsCore.Data.DataProviders.DataProviderFactories.GetFactory

GetFactory Method

GetFactory(string, DataProviderInfo[], ResourceLocator)

Returns an instance of the specified data provider.

Declaration
public static DbProviderFactory GetFactory(string providerName, DataProviderInfo[] dataProviders, ResourceLocator resourceLocator = null)
Parameters
Type Name Description
string providerName

The name, as configured for the desired data provider.

DataProviderInfo[] dataProviders
ResourceLocator resourceLocator
Returns
Type Description
DbProviderFactory

The DbProviderFactory associated with the specified data provider name or NULL if it is not configured or it cannot be initialized.