title: How to update an entity's navigation properties in Entity Framework
body: <p>In ASP .NET MVC 3 with Entity Framework, I have a domain object which has a navigation property referencing another objects, as follows:</p>
  
  <pre><code>public class Person
  {
      public String Name {get;set;}
  
      public Guid CompanyID{get;set;}
  
      [ForeignKey(CompanyID)]
      public virtual CompanyType Company{ get; set; }
  }
  </code></pre>
  
  <p>When I create an instance of Person and try to add it to the database, the DBContext keeps a cache of this entity 'Person' and sends it to the database.  So later on in the lifetime of the same context instance, when I try to access this entity, the Company field is always null since the navigation property never got updated.</p>
  
  <p>Is there a way to update the navigation property with what exists in the database?  </p>
  
  <p>Lazy loading is turned on.</p>