title: How to create Lookup table and define relationships
body: <p>As you can see at below, there are a Lookup table for the enum values and I want to create a relationship between a table's enum values and <strong>LookupKey</strong> column of the Lookup table (instead of ID column of the Lookup table). </p>
  
  <p><strong>Lookup table:</strong></p>
  
  <pre><code>ID   | LookupType | LookupKey | LookupValue |
  101  | Status     | 0         | Passive     | 
  106  | Gender     | 1         | Male        | 
  113  | Status     | 1         | Active      | 
  114  | Gender     | 2         | Female      | 
  118  | Status     | 2         | Cancelled   | 
  </code></pre>
  
  <p><br/>
  <strong>Main Table:</strong></p>
  
  <pre><code>ID | Status     | Gender    | Name              | ...
  1  | 0          | 1         | John Smith        | ...
  2  | 1          | 2         | Christof Jahnsen  | ...
  3  | 2          | 1         | Alexi Tenesis     | ...
  4  | 0          | 2         | Jurgen Fechtner   | ...
  5  | 1          | 2         | Andreas Folk      | ...
  </code></pre>
  
  <p>However, when using PK-FK relation and InverseProperty as on <a href="http://www.entityframeworktutorial.net/code-first/inverseproperty-dataannotations-attribute-in-code-first.aspx" rel="noreferrer">DataAnnotations - InverseProperty Attribute</a> the relation is created with the ID column of the Lookup table and I cannot make the relation to the LookupKey column. Could you give an example how to achieve this? </p>