title: Create code first, many to many, with additional fields in association table
body: <p>I have this scenario:</p>
  
  <pre><code>public class Member
  {
      public int MemberID { get; set; }
  
      public string FirstName { get; set; }
      public string LastName { get; set; }
  
      public virtual ICollection&lt;Comment&gt; Comments { get; set; }
  }
  
  public class Comment
  {
      public int CommentID { get; set; }
      public string Message { get; set; }
  
      public virtual ICollection&lt;Member&gt; Members { get; set; }
  }
  
  public class MemberComment
  {
      public int MemberID { get; set; }
      public int CommentID { get; set; }
      public int Something { get; set; }
      public string SomethingElse { get; set; }
  }
  </code></pre>
  
  <p>How do I configure my association with <a href="https://www.quora.com/What-is-fluent-API-in-this-context/answer/Adam-Leffert">fluent API</a>? Or is there a better way to create the association table?</p>