title: Entity Framework CodeFirst many to many relationship with additional information
body: <p>I have the following model :</p>
  
  <pre><code>class Contract
  {
     string ContractID{get;set;}
     ICollection&lt;Part&gt; Parts{get;set;}
  }
  
  class Part
  {
     string PartID{get;set;}
     ICollection&lt;Contract&gt; Contracts{get;set;}
  }
  </code></pre>
  
  <p>the problem is that the relationship between Part and Contract also contains the following  additional information :</p>
  
  <pre><code>class ContractParts
  { 
     Contract{get;set;}
     Part{get;set;}
     Date{get;set;} //additional info
     Price{get;set;} //additional info
  }
  </code></pre>
  
  <p>How would I write the Entity Context for this ?</p>