title: MVC 4 - cannot create database using NuGet Package manager console
body: <p>I'm trying to create a new database using Visual Studio 2012 NuGet package manager console.
  I have done all the steps to enable migration, the Migrations folder was successfully created, and its configuration class was defined as the next:</p>
  
  <pre><code>internal sealed class Configuration : DbMigrationsConfiguration&lt;MyMVC4Project.Infrastructure.CategoryDb&gt;
  {
      public Configuration()
      {
          AutomaticMigrationsEnabled = true;
      }
  
      protected override void Seed(MyMVC4Project.Infrastructure.CategoryDb context)
      {
          context.Categories.AddOrUpdate(d =&gt; d.Name,
              new Department() {Name = "dishes"},
              new Department() {Name = "Appliances"},
              new Department() {Name = "furniture"}
              );
      }
  }
  </code></pre>
  
  <p>PM> update-database -Verbose</p>
  
  <p>At which point I see the error message:</p>
  
  <pre><code>Using StartUp project 'MyMVC4Project'.
  Using NuGet project ' MyMVC4Project '.
  Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
  Target database is: 'MyMVC4Project.Infrastructure.CategoryDb' (DataSource: .\SQLEXPRESS, Provider: System.Data.SqlClient, Origin: Convention).
  No pending code-based migrations.
  Running Seed method. 
  </code></pre>
  
  <p>Then no database is created in the App_data folder, I am expecting to find a localDb database not an SQL Express one, then the installed SQL Express instance have a different name than "SQLExpress", and in my web.config the default connection string points to a localDB instance.</p>
  
  <p>Please, how can I resolve this issue?</p>