I have a many to many relationship and I want to store extra data in the couple-table, using Code First Fluent API.
How can this be achieved ?
My model:
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
(I have seen this earlier in StackOverflow here, but I the model is somewhat complex and no answer has been given correctly yet)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…