title: How can I disable the use of the __MigrationHistory table in Entity Framework 4.3 Code First?
body: <p>I'm using Entity Framework 4.3 Code First with a custom database initializer like this:</p>
  
  <pre><code>public class MyContext : DbContext
  {
      public MyContext()
      {
          Database.SetInitializer(new MyContextInitializer());
      }
  }
  
  public class MyContextInitializer : CreateDatabaseIfNotExists&lt;MyContext&gt;
  {
      protected override void Seed(MyContext context)
      {
          // Add defaults to certain tables in the database
  
          base.Seed(context);
      }
  }
  </code></pre>
  
  <p>Whenever my model changes, I edit my POCO's and mappings manually and I update my database manually.</p>
  
  <p>When I run my application again, I get this error:</p>
  
  <blockquote>
    <h2>Server Error in '/' Application.</h2>
    
    <h3>The model backing the 'MyContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).</h3>
    
    <p><strong>Description:</strong> An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
    
    <p><strong>Exception Details:</strong> System.InvalidOperationException: The model backing the 'MyContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).</p>
  </blockquote>
  
  <p>Using EFProfiler, I also notice these queries being executed:</p>
  
  <pre><code>-- statement #1
  SELECT [GroupBy1].[A1] AS [C1]
  FROM   (SELECT COUNT(1) AS [A1]
          FROM   [dbo].[__MigrationHistory] AS [Extent1]) AS [GroupBy1]
  
  -- statement #2
  SELECT TOP (1) [Project1].[C1]          AS [C1],
                 [Project1].[MigrationId] AS [MigrationId],
                 [Project1].[Model]       AS [Model]
  FROM   (SELECT [Extent1].[MigrationId] AS [MigrationId],
                 [Extent1].[CreatedOn]   AS [CreatedOn],
                 [Extent1].[Model]       AS [Model],
                 1                       AS [C1]
          FROM   [dbo].[__MigrationHistory] AS [Extent1]) AS [Project1]
  ORDER  BY [Project1].[CreatedOn] DESC
  </code></pre>
  
  <p>How can I prevent this?</p>