[]
Specifies an array of the custom data provider.
public ReportViewerConfiguration UseDataProviders(DataProviderInfo[] dataProviderInfos)
| Type | Name | Description |
|---|---|---|
| DataProviderInfo[] | dataProviderInfos | The array of the DataProviderInfo representing the custom data providers. |
| Type | Description |
|---|---|
| ReportViewerConfiguration | The current ReportViewerConfiguration instance. |
app.UseReportViewer(config =>
{
config.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});