[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Aspnetcore.Viewer.ReportingSettings.UseDataProviders

UseDataProviders Method

UseDataProviders(DataProviderInfo[])

Specifies an array of the custom data provider.

Declaration
public void UseDataProviders(DataProviderInfo[] providers)
Parameters
Type Name Description
DataProviderInfo[] providers

The array of the DataProviderInfo representing the custom data providers.

Examples
app.UseReporting(settings =>
{
	settings.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});