title: Many to many mapping with extra fields in Fluent API
body: <p>I have a many to many relationship and I want to store extra data in the couple-table, using Code First Fluent API.</p>
  
  <p>How can this be achieved ?</p>
  
  <p>My model:</p>
  
  <p>A user can have 1 or more badges (optional), a badge can belong to one or more users (optional). I want to store an extra field (called B) for this relation to be stored. The table should be named UserBadges with the following fields: UserId, BadgeId, B</p>
  
  <p>(I have seen this earlier in StackOverflow <a href="https://stackoverflow.com/questions/7964631/mapping-many-to-many-with-extra-columns-in-fluent-api">here</a>, but I the model is somewhat complex and no answer has been given correctly yet)</p>