Is there a way to add extra fields to an association in the ADO.NET Entity Framework?

Posted by bigbird1040 on Stack Overflow See other posts from Stack Overflow or by bigbird1040
Published on 2010-06-17T19:27:50Z Indexed on 2010/06/17 19:33 UTC
Read the original article Hit count: 250

I would like to be able to model a many-to-many relationship that has extra details about the relationship. For example:

Person: int id, String name
Project: int id, String name

ProjectPerson: Person.id, Project.id, String role

Whenever I create the ProjectPerson association in the EF, I am unable to add the role attribute to the association. If I create the tables in my DB and then import it into the model, I lose the extra properties.

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework