title: Unable to generate an explicit migration because the following explicit migrations are pending
body: <p>I'm using <code>EF 6.1</code> and I enabled code first migration in my project by </p>
  
  <pre><code>Enable-Migrations
  Add-Migration InitializeDb -ConnectionProviderName System.Data.SqlClient -ConnectionString "Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4"
  Update-Database  -ConnectionProviderName System.Data.SqlClient -ConnectionString "Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4" -verbose -script
  </code></pre>
  
  <p>When I specify my <code>ConnectionString</code>, <code>ConnectionProviderName</code>  explicitly with <code>Add-Migration</code> and <code>Update-database</code> in package manager console
  it work correctly:</p>
  
  <pre><code>Add-migration updateXtable -ConnectionProviderName System.Data.SqlClient -ConnectionString "Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4"
  </code></pre>
  
  <p>but when I use <code>Add-Migration</code>without extra informations:</p>
  
  <pre><code>add-migration updateXtable
  </code></pre>
  
  <p>I get following error:</p>
  
  <blockquote>
    <p>Unable to generate an explicit migration because the following explicit migrations are pending: [201408300955376_InitializeDb, 201408311028404_Test]. Apply the pending explicit migrations before attempting to generate a new explicit migration.</p>
  </blockquote>
  
  <p>So, I have to use following command each time I need update my Database:</p>
  
  <pre><code>Add-Migration UpdateXTable -ConnectionProviderName System.Data.SqlClient -ConnectionString "Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4"
  Update-Database  -ConnectionProviderName System.Data.SqlClient -ConnectionString "Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4" -verbose -script
  </code></pre>
  
  <p>It's my project(that contains my <code>DbContext</code>) <code>app.config</code> file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
   &lt;entityFramework&gt;
  &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory,  EntityFramework" /&gt;
   &lt;providers&gt;
    &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
   &lt;/providers&gt;
   &lt;/entityFramework&gt;
   &lt;connectionStrings&gt;
   &lt;add name="ERPContext" connectionString="Data Source=myServer;Initial Catalog=myDb;Persist Security Info=True;User ID=sa;password=******;application name = L4" providerName="System.Data.SqlClient" /&gt;
   &lt;/connectionStrings&gt;
  
   &lt;startup&gt;&lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /&gt;
   &lt;/startup&gt;   
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Does anyone know where is the problem?</p>