[]
        
(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 GrapeCity.ActiveReports.Web.Viewer.DataProviderInfo("SQL",
		typeof(SqlProviderFactory).AssemblyQualifiedName,
		typeof(SqlConnectionAdapter).AssemblyQualifiedName)
	]);
});