title: The specified invariant name 'MySql.Data.MySqlClient' wasn't found in the list of registered .NET Data Providers
body: <p>I have a C# Library developed using .Net Standard 2.1 and  this library is called in a test console application built on .Net Core 3.0. But at run time, the GetFactory is throwing an exception.</p>
  <pre><code> private DbConnection connection;
   connection = DbProviderFactories.GetFactory(&quot;MySql.Data.MySqlClient&quot;).CreateConnection();
  </code></pre>
  <p>Exception:</p>
  <blockquote>
  <p>DbProviderFactories.GetFactory The specified invariant name 'MySql.Data.MySqlClient' wasn't found in the list of registered .NET Data Providers.</p>
  </blockquote>
  <p>I have installed MySqlConnector 1.2.1. But it didn't help. And also adding the below in app.config file.</p>
  <pre><code>&lt;system.data&gt;
   &lt;DbProviderFactories&gt;
    &lt;remove invariant=&quot;MySql.Data.MySqlClient&quot; /&gt;
    &lt;add name=&quot;MySQL Data Provider&quot; invariant=&quot;MySql.Data.MySqlClient&quot; description=&quot;.Net Framework Data Provider for MySQL&quot; type=&quot;MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=8.0.23.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d&quot; /&gt;
  &lt;/DbProviderFactories&gt;
  &lt;/system.data&gt;
  </code></pre>
  <p>Thanks in advance for your help.</p>