title: Entity Framework Code First Relationships; what am I missing?
body: <p>I'm experimenting with EF5 Code First and I am using the models (show below).</p>
  
  <p>When I look at the database that is created, I am confused because I do not see anything in the Track table that points to the Category table. Category has a FK pointing back to Track but that means that there are going to be duplicates of the categories?</p>
  
  <p>A little background: I am trying to build a model that has tracks and every track can have 1 to N Categories. All of the categories are already defined, that is they are basically a lookup and I plan to create them in the seed method when database is created.</p>
  
  <p>I think I am not understanding something obvious... When I query a track, how will I know what category it contains?</p>
  
  <p>Thx</p>
  
  <pre><code>public class Track : IAuditInfo
  {
      public Int32 Id { get; set; }
      public String Name { get; set; }
      public String Description { get; set; }
      public String Data { get; set; }
      public DateTime CreatedOn { get; set; }
      public DateTime ModifiedOn { get; set; }
  
      public ICollection&lt;Category&gt; Categories { get; set; }
  
      public Track()
      {
          Categories = new List&lt;Category&gt;();
      }
  }
  
  public class Category
  {
      public Int32 Id { get; set; }
      public Boolean IsVisible { get; set; }
      public String DisplayName { get; set; }
  }
  </code></pre>