Cannot find the UseMysql method on DbContextOptions
<p>I am playing around with the dotnet core on linux, and i am trying to configure my DbContext with a connection string to a mysql Server.</p>
<p>my DbContext looks like so:</p>
<pre><code>using Microsoft.EntityFrameworkCore;
using Models.Entities;

namespace Models {
    public class SomeContext : DbContext
    {
        //alot of dbSets...
        public DbSet&lt;SomeEntity&gt; SomeDbSet { get; set; }

        public SomeContext(DbContextOptions&lt;SomeContext&gt; options) : base(options) {
            
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) 
        {
            optionsBuilder.UseMysql //Cannot find this method
        }
        
        
        protected override void OnModelCreating(ModelBuilder modelBuilder) 
        {
            //using modelBuilder to map some relationships
        }
    }
}
</code></pre>
<p>My dependencies looks like so:</p>
<pre><code>&quot;dependencies&quot;: {
    &quot;Microsoft.NETCore.App&quot;: {
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;type&quot;: &quot;platform&quot;
    },
    &quot;Microsoft.AspNetCore.Diagnostics&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.AspNetCore.Server.IISIntegration&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.AspNetCore.Server.Kestrel&quot;: &quot;1.0.1&quot;,
    &quot;Microsoft.Extensions.Logging.Console&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.Extensions.Configuration.EnvironmentVariables&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.Extensions.Configuration.FileExtensions&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.Extensions.Configuration.Json&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.Extensions.Configuration.CommandLine&quot;: &quot;1.0.0&quot;,
    &quot;Microsoft.AspNetCore.Mvc&quot;:&quot;1.0.0&quot;,
    &quot;Microsoft.EntityFrameworkCore&quot;: &quot;1.0.1&quot;,
    &quot;MySql.Data.Core&quot;: &quot;7.0.4-ir-191&quot;,
    &quot;MySql.Data.EntityFrameworkCore&quot;: &quot;7.0.4-ir-191&quot;
  },
</code></pre>
<p>I also tried to use the mysql server in my Startup.cs in the following code</p>
<pre><code>public class Startup
    {
       
        public void ConfigureServices(IServiceCollection services)
        {
            var connection = @&quot;Server=(localdb)\mssqllocaldb;Database=EFGetStarted.AspNetCore.NewDb;Trusted_Connection=True;&quot;;
            services.AddDbContext&lt;SomeContext&gt;(options =&gt; options.UseMysql); //Cannot find UseMysql*
        }
</code></pre>
<p>I tried to change my directive from</p>
<pre><code>using Microsoft.EntityFrameworkCore;
</code></pre>
<p>to</p>
<pre><code>using MySQL.Data.EntityFrameworkCore;
</code></pre>
<p>Which makes sense? maybe? but then all of the references to DbContext and DbSet is gone, so i suppose the solution is a mix of sorts??</p>