[]
Initializes a new instance of the DataProviderInfo struct for custom providers only. Should be used to initialize custom data providers, for example: SQLITE, MYSQL, POSTGRESQL, ORACLE or for overrides of standard providers.
public DataProviderInfo(string invariantName, string assemblyQualifiedName, string adapterAssemblyQualifiedName)
| Type | Name | Description |
|---|---|---|
| string | invariantName | The name that can be used to refer to the data provider in reports. |
| string | assemblyQualifiedName | The fully assembly-qualified name of the class that implements DbProviderFactory for this provider. |
| string | adapterAssemblyQualifiedName | The fully assembly-qualified name of the class that implements additional features like setting of multivalue parameters and others. |
Init data providers for web-viewer midleware only:
app.UseReportViewer(config =>
{
config.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});
Init data providers for web-designer midleware only:
app.UseReportDesigner(config =>
{
config.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});