# GrapeCity.ActiveReports.Configuration.DataProviderInfo.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Configuration_DataProviderInfo__ctor_" data-uid="GrapeCity.ActiveReports.Configuration.DataProviderInfo.#ctor*">DataProviderInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Configuration_DataProviderInfo__ctor_" data-uid="GrapeCity.ActiveReports.Configuration.DataProviderInfo.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Configuration_DataProviderInfo__ctor_System_String_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Configuration.DataProviderInfo.#ctor(System.String,System.String,System.String)">DataProviderInfo(string, string, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Configuration.DataProviderInfo.html">DataProviderInfo</a> 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.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataProviderInfo(string invariantName, string assemblyQualifiedName, string adapterAssemblyQualifiedName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">invariantName</span></td>
      <td><p>The name that can be used to refer to the data provider in reports.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">assemblyQualifiedName</span></td>
      <td><p>The fully assembly-qualified name of the class that implements <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory">DbProviderFactory</a> for this provider.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">adapterAssemblyQualifiedName</span></td>
      <td><p>The fully assembly-qualified name of the class that implements additional features like setting of multivalue parameters and others.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Configuration_DataProviderInfo__ctor_System_String_System_String_System_String__examples">Examples</h5>
<p>Init data providers for web-viewer midleware only:</p>
<pre><code class="lang-csharp">app.UseReportViewer(config =&gt;
{
	config.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});</code></pre>
<p>Init data providers for web-designer midleware only:</p>
<pre><code class="lang-csharp">app.UseReportDesigner(config =&gt;
{
	config.UseDataProviders(new DataProviderInfo[] { new DataProviderInfo("SQL", "Microsoft.Data.SqlClient.SqlClientFactory, Microsoft.Data.SqlClient", null) });
});</code></pre>

</div>
