title: Self-entity relationship in Entity framework - Error while saving
body: <p>I have an Employee entity, which is having following properties:</p>
  
  <ul>
  <li>EmployeeId</li>
  <li>EmployeeName</li>
  <li>EmployeeManagerId</li>
  <li>EmployeeManager</li>
  </ul>
  
  <p>All above fields can be mapped with a table in database, except, EmployeeManager.</p>
  
  <p>It is declared as </p>
  
  <pre><code>public virtual Employee EmployeeManager { get; set; }
  </code></pre>
  
  <p>When I try to save a new Employee in database, it is giving me an error saying EmployeeManager_EmployeeId field does not exist in database, whereas, I believe this should not at all be part of INSERT operation.</p>
  
  <p>How to deal with this kind of situation.</p>
  
  <p>Any help on this much appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Nirman</p>