title: Code First Supress Foreign Key Generation
body: <p>We have a DB with many entities and I am taking an example of three entities Case, Task and Note. Any entity can have a Note and we have decided to go with the following DB design.</p>
  
  <pre><code>Case:
    - CaseId
    - Title
  
  Task:
    - TaskId
    - Title
  
  Note:
    - NoteId
    - Desc
    - ParentId (will contain the PK of Case/Task etc but without FK constraint)
  </code></pre>
  
  <p>The POCOs will be as below:</p>
  
  <pre><code>Case
  {
    CaseId
    Title
    Notes
  }
  
  Task
  {
    TaskId
    Title
    Notes
  }
  </code></pre>
  
  <p>We don't want to have referential constraints and all, as these notes will not be deleted. We can model this using <code>EDMX</code> and want to use Code First approach. We have searched SO and looked at the suggestion of polymorphic associations etc. If given this design what is the best way to model using code first? Thanks in advance.</p>