title: How do I pass an en entity ID to another entity during the seeding process?
body: <p>I have this class:</p>
  
  <pre><code>public class Reservation
  {
      public int ID { get; set; }
      public int SpaceNumber { get; set; }
      public string UserName{ get; set; }
  
      public virtual Game Game { get; set; }
  
      public Reservation() { }
  }
  </code></pre>
  
  <p>I am trying to setup some seeds, but am not sure how to pass the GameID to this. Here is an example:</p>
  
  <pre><code>public class TTUInitializer : System.Data.Entity.DropCreateDatabaseIfModelChanges&lt;TTUContext&gt;
  {
      protected override void Seed(TTUContext context)
      {
          var reservation = new List&lt;Reservation&gt;
          {
              new Reservation{SpaceNumber=123, UserName="username", Game_ID=1},
              new Reservation{SpaceNumber=124, UserName="username", Game_ID=1},
          };
          reservation.ForEach(r =&gt; context.Reservations.Add(r));
          context.SaveChanges();
      }
  }
  </code></pre>
  
  <p>Game_ID is the name of the database column - but when I tried adding that as a property, the migration generated a new (second) Game_ID1 column. what's the correct what to seed this?</p>