title: EF Code First Additional column in join table for ordering purposes
body: <p>I have two entities that have a relationship for which I create a join table</p>
  
  <pre><code>public class Student
  {
      public int Id { get; set; }
      public string Name { get; set; }
  
      public virtual ICollection&lt;Image&gt; Images { get; set; }
  }
  
  
  public class Image
  {
      public int Id { get; set; }
      public string Filename { get; set; }
  
      public virtual ICollection&lt;Student&gt; Students { get; set; }
  }
  
  
  protected override void OnModelCreating(DbModelBuilder modelBuilder)
  {
  
          modelBuilder.Entity&lt;Student&gt;()
              .HasMany(i =&gt; i.Images)
              .WithMany(s =&gt; s.Students)
              .Map(m =&gt; m.ToTable("StudentImages"));
  }
  </code></pre>
  
  <p>I would like to add an additional column to allow chronological ordering of the StudentImages.</p>
  
  <p>Where should I add insert the relevant code?</p>