title: Unable to resolve service for type Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger
body: <p>I am having difficulties to scaffold an existing MySQL database using EF core.
  I have added the required dependencies as mentioned in the <a href="https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework-core-scaffold-example.html" rel="noreferrer">oracle doc</a>:</p>
  <pre><code>&lt;PackageReference Include=&quot;Microsoft.EntityFrameworkCore&quot; Version=&quot;6.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.EntityFrameworkcore.Tools&quot; Version=&quot;6.0.0&quot;&gt;
  </code></pre>
  <p>and then, I ran this code in the package manager console:</p>
  <pre><code>Scaffold-Dbcontext &quot;server=the.server.ip.address;user=user_name;database=db_name;password=db_password;port=3306&quot; MySql.EntityFrameworkCore -o Data -v
  </code></pre>
  <p>It shows this error:</p>
  <blockquote>
  <p>Unable to resolve service for type
  'Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger`1[Microsoft.EntityFrameworkCore.DbLoggerCategory+Scaffolding]'
  while attempting to activate
  'MySql.EntityFrameworkCore.Scaffolding.Internal.MySQLDatabaseModelFactory'</p>
  </blockquote>
  <p>Here are the relevant logs in the output window:</p>
  <pre><code>Finding design-time services referenced by assembly 'Test2'...
  Finding design-time services referenced by assembly 'Test2'...
  No referenced design-time services were found.
  Finding design-time services for provider 'MySql.EntityFrameworkCore'...
  Using design-time services from provider 'MySql.EntityFrameworkCore'.
  Finding IDesignTimeServices implementations in assembly 'Test2'...
  No design-time services were found.
  </code></pre>
  <p>I don't know how shall I implement the design time classes and nor did I find any useful links in the web.</p>
  <p>Note that I can access and run query on the database using MySQL Workbench.</p>