title: How to add new table to existing database code first
body: <p>Originally I used EF 6 code first to create a new database and two new tables. The code is:</p>
  
  <pre><code> public class TestingContext : DbContext, IDisposable
  {
      public DbSet&lt;CallDataRecord&gt; CallDataRecords { get; set; }
      public DbSet&lt;Attempt&gt; Attempts { get; set; }
  
      public TestingContext()
          : base("Testing")
      {
          Database.SetInitializer&lt;TestingContext&gt;(new MigrateDatabaseToLatestVersion&lt;TestingContext, GenericIVR.Migrations.Configuration&gt;());
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Entity&lt;Attempt&gt;().HasRequired(t =&gt; t.CallDataRecord).WithMany(a =&gt; a.Attempts).HasForeignKey(t =&gt; t.FKTaskId);
  
          modelBuilder.Entity&lt;Attempt&gt;().Property(x =&gt; x.AttemptId).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity).IsRequired();
  
          modelBuilder.Entity&lt;CallDataRecord&gt;().Property(x =&gt; x.TaskId).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity).IsRequired();
      }
  }
  </code></pre>
  
  <p>Now my strategy is changed, I don't want to a new DB. I want to add the new tables to an existing DB, say <code>DevDB</code>.</p>
  
  <p>How to change the code? DO I have to use <code>Reverse Engineering Code First?</code> </p>
  
  <p><strong>UPDATED:</strong>
  The connection string is:</p>
  
  <pre><code>&lt;connectionStrings&gt;
  &lt;add name="Testing" connectionString="Data Source=dddd.corporate.xxxx.com; Initial Catalog=Testing; User ID=sa; Password=password; MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p></p>