title: Entity Framework 4.3 doesn't create database
body: <p>I created new project and added the newest entity framework to it (version 4.3). I created classes and the context as in previous EF versions. However, during the very first run when the database should be created (in my case it is SQL Server 2005), I'm receiving the following error:</p>
  
  <blockquote>
    <p>An error occurred while executing the command definition. See the inner exception for details.</p>
  </blockquote>
  
  <p>With the following inner exception:</p>
  
  <blockquote>
    <p>Invalid object name 'dbo.__MigrationHistory'.</p>
  </blockquote>
  
  <p>As I understand, this table is for migrations, but this table does not exist if there is no database. Am I doing something wrong?</p>
  
  <p>More info:
  For testing purposes I created only one class:</p>
  
  <pre><code>public class Test
  { 
    [Key]
    public int TestId { get; set;}
  
    public string Name {get; set;}
  }
  
  public class Context : DbContext
  {
     public Context() : base("MyConnection")
     {
     }
  
     public DbSet&lt;Test&gt; Tests { get; set;}
  }
  </code></pre>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>After some tests I realized that application is throwing unhandled exception from visual studio and break in visual studio. The exception was <em>System.Data.EntityCommandExecutionException</em>. Once I ignored that expection and didn't stop code execution, database was created.</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>After another few hours working with database I found out that playing with Enable-Migrations option and Update-Database from console also is solving that issue. It is creating database before application start and don't break in Visual Studio.</p>