I have the following model :
class Contract { string ContractID{get;set;} ICollection Parts{get;set;} } class Part { string PartID{get;
Perhaps a better way to do is this answer? Create code first, many to many, with additional fields in association table
It doesn't require fluent APIs and also sets up the PK on join table.