title: ASP.NET Core 2 MySQL 8.0.8-dmr Entity Framework Extensions not found
body: <p>Upgrading an ASP.NET Core Web Application to .NET Core 2.0, I'm having difficulty with MySQL extension method not found after upgrading to MySQL 8.0.8-dmr release.</p>
  
  <p>MySQL Data Entity Framework Core was upgraded to 8.0.8-dmr</p>
  
  <pre><code>$ dotnet add package MySql.Data.EntityFrameworkCore --version 8.0.8-dmr
  </code></pre>
  
  <p>In my <code>Startup.cs</code>, I have:</p>
  
  <pre><code>using MySQL.Data.EntityFrameworkCore;
  using MySQL.Data.EntityFrameworkCore.Extensions;
  </code></pre>
  
  <p>But in the MySQL 8.0.8-dmr release, the <code>Extensions</code> namespace is not found.</p>
  
  <blockquote>
    <p>error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'MySql.Data.EntityFrameworkCore' (are you missing an assembly reference?) </p>
  </blockquote>
  
  <p>This is required to use MySQL, as in <code>ConfigureServices()</code>:</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      services.AddDbContext&lt;ApplicationDbContext&gt;(options =&gt;
          options.UseMySQL(Configuration.GetConnectionString("DefaultConnection")));
  </code></pre>
  
  <p>Without the extension method, this results in:</p>
  
  <blockquote>
    <p>error CS1061: 'DbContextOptionsBuilder' does not contain a definition for 'UseMySQL' and no extension method 'UseMySQL' accepting a first argument of type 'DbContextOptionsBuilder' could be found </p>
  </blockquote>
  
  <p>Is there a different methodology for using MySQL in ASP.NET Core 2 Web Apps?</p>