title: The entity type [Name] is not part of the model for the current context
body: <p>I create a model using EF and generated its context using DbContext 5.X generator. Now I renamed class name of one of my entities. Now when I run my code I get "The entity type Student2 is not part of the model for the current context." error.</p>
  
  <pre><code>var context = new MyEntities(connectionString);
  foreach(var student in context.Students)
  {
      Console.WriteLine(class.Name.ToString());
  }
  </code></pre>
  
  <p>In my data context.</p>
  
  <pre><code>public partial class MyEntities : DbContext
  {
      public MyEntities()
          : base("name=MyEntities")
      {
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          throw new UnintentionalCodeFirstException();
      }
  
      // public DbSet&lt;Student&gt; Students { get; set; } -&gt; Origional
      public DbSet&lt;Student2&gt; Student { get; set; } // I renamed Student to Student2
  }
  </code></pre>
  
  <p>How to fix this? I need to rename my class due to some conflicts.</p>