title: Unable to update database message when adding a DBSet in Entify Framework 6
body: <p>I just have gotten to a point where I am beginning to understand how EF6 operates during update and just figured out what AutomaticMigrationsEnabled actually does. I am attempting to update a database with a new User table. I have created a new entity for the users:</p>
  
  <pre><code>[Table("Users")]
  public class User
  {
      &lt;Omitted properties&gt;
  }
  </code></pre>
  
  <p>In the project I have been working on, it has been chosen to use explicit migrations and not having any automatic migrations. So I created a migration script to create the database:</p>
  
  <pre><code>public partial class AddingUserTable : DbMigration
  {
      public override void Up()
      {
          CreateTable("dbo.Users",.... Omitted for clarity
      }
  
      public override void Down()
      {
          DropTable("dbo.Users");
      }
  }
  </code></pre>
  
  <p>And update my context so I have access to it with:</p>
  
  <pre><code>public DbSet&lt;User&gt; Users { get; set; } 
  </code></pre>
  
  <p>At this point, if I execute the "Update-Database" on the NuGet package manager console it will apply the migration script but with a warning:</p>
  
  <pre><code>Applying explicit migration: 201712201003395_AddingUserTable. 
  Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.
  </code></pre>
  
  <p>It turns out that this is because I added the DBSet Users to my context. If I remove that DBSet and update the database again, the warning will not appear. If I add it, the warning will appear again. I know that the warning comes because I changed the context by adding the set and I have Automatic migrations disabled, but I already applied the changes via the explicit migration script.</p>
  
  <p>What do I need to do so the Entity Framework can see that I already did the migration for it and accept the new DBSet Users without warnings?</p>