title: Target Framework change 4.0 to 3.5 breaks EF model. Error 111: Referential constraint errors
body: <p>I created a EF model in a library project which targets .NET framework 4.0. I just downgraded it to target framework 3.5 instead since one of the projects that will be using this library targets 3.5 and cannot be upgraded at the moment.</p>
  
  <p>After changing the target framework from 4 to 3.5, I am getting multiple 111 errors similar to:</p>
  
  <blockquote>
    <p>Error 111: Properties referred by the
    Dependent Role WfInstance must be a
    subset of the key of the EntityType
    xx.Entity.WfInstance referred to by
    the Dependent Role in the referential
    constraint for Relationship
    xx.Entity.FK_WfInstance_WfStatusType.</p>
  </blockquote>
  
  <p>What I get out of the message is that my table's (WfInstance) primary key must use/contain the Id of the referenced table (WfStatusType) and any other tables it references. However, I am not sure how to do this.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>TIA
  - GP</p>