title: EF migration shows empty Up() Down() methods
body: <p>I have a local database that is currently in it's second version and should now go to it's third version.</p>
  
  <p>The code for the previous migrations was generated by another programmer so I am assuming I am doing something wrong here.</p>
  
  <p>In my model there are around 30 classes, and inside the model folder there is a mapping folder and it contains the mappings for those 30 classes.</p>
  
  <p>So now I added 1 new class in the same manner as those previous classes and then run the add-migration command in the Package Manager Console.</p>
  
  <p>Infortunately I get an empty migration Up() and Down() method.</p>
  
  <p>When I look in the database there is a __migrationHistory available with the previous 2 migrations. If I run my application now, the third migration is also added but obviously the new table is not being created because it's not in the Up() method.</p>
  
  <p>What could I be doing wrong?</p>
  
  <p>I think something is going wrong when scaffolding the previous migrations... It's like it can't find the new Code-First classes I have added.</p>
  
  <p>This is my command:</p>
  
  <pre><code>add-migration "1.2" -verbose -ProjectName "MyEFproject"
  </code></pre>
  
  <p>I am assuming that the scaffolding doesn't know where to look for the new class... or is this by convention that all model classes are just expected to be in the project?</p>
  
  <p>Result of add-migration:</p>
  
  <pre><code>namespace MyProject.Migrations
  {
  using System;
  using System.Data.Entity.Migrations;
  
  public partial class _1002 : DbMigration
  {
      public override void Up()
      {
      }
  
      public override void Down()
      {
      }
  }
  }
  </code></pre>
  
  <p>Sample of new Model Class:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  
  namespace MyProject.Models
  {
  public partial class MyTable
  {
  
      public string SomeId { get; set; }
      public string SomeText { get; set; }
  
  
  }
  }
  </code></pre>
  
  <p>Sample of new Mapping class</p>
  
  <pre><code>using System.ComponentModel.DataAnnotations.Schema;
  using System.Data.Entity.ModelConfiguration;
  
  namespace MyProject.Models.Mapping
  {
   public class MyTableMap : EntityTypeConfiguration&lt;MyTable&gt;
  {
  
      public MyTableMap()
      {
          // Primary Key
          this.HasKey(t =&gt; t.SomeId);
  
          // Properties
          this.Property(t =&gt; t.SomeText)
              .IsRequired()
              .HasMaxLength(30);
  
  
  
          // Table &amp; Column Mappings
          this.ToTable("MyTable", "database");
          this.Property(t =&gt; t.SomeId).HasColumnName("SomeId");
          this.Property(t =&gt; t.SomeText).HasColumnName("SomeText");
  
  
      }
  
  
  
  
     }
  }
  </code></pre>
  
  <p>Thank you,</p>