MESCIUS.ActiveReports.Web.Viewer Assembly / GrapeCity.ActiveReports.Aspnetcore.Viewer Namespace / ReportingSettings Class / UseDataProviders Method
The array of the GrapeCity.ActiveReports.Configuration.DataProviderInfo representing the custom data providers.
Example

In This Topic
UseDataProviders Method (ReportingSettings)
In This Topic
Specifies an array of the custom data provider.
Syntax
'Declaration
 
Public Sub UseDataProviders( _
   ByVal providers() As DataProviderInfo _
) 
 

Parameters

providers
The array of the GrapeCity.ActiveReports.Configuration.DataProviderInfo representing the custom data providers.
Example
app.UseReporting(settings =>
{
	settings.UseDataProviders(
	[
		new GrapeCity.ActiveReports.Web.Viewer.DataProviderInfo("SQL",
		typeof(SqlProviderFactory).AssemblyQualifiedName,
		typeof(SqlConnectionAdapter).AssemblyQualifiedName)
	]);
});
See Also