title: No suitable method found to override OnModelCreating()
body: <p>When I try to override <code>OnModelCreating</code> virtual function it says no suitable method found to override. I'm pretty sure that I've installed all necessary Entity Framework packages</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Data.Entity;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
  using Microsoft.EntityFrameworkCore;
  
  namespace MVCOurselves.Models
  {
      public class MVCOurselvesContext : IdentityDbContext
      {
          public System.Data.Entity.DbSet&lt;Student&gt; Student { get; set; }
          public System.Data.Entity.DbSet&lt;Grade&gt; Grades { get; set; }
  
          public MVCOurselvesContext (DbContextOptions&lt;MVCOurselvesContext&gt; options)
              : base(options)
          {
          }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              // configures one-to-many relationship
              modelBuilder.Entity&lt;Student&gt;()
                  .HasRequired&lt;Grade&gt;(s =&gt; s.Grade)
                  .WithMany(g =&gt; g.Students)
                  .HasForeignKey&lt;int&gt;(s =&gt; s.Id);
          }
  
      }
  
  }
  </code></pre>