title: How to specify eager loading with DBContext Find method
body: <p>How do I tell the Find method of a DBContext that it should eagerly load the navigation property/entity?</p>
  
  <p>I have the following code which deletes the association to a related Secondary entity:</p>
  
  <pre><code>Person primary = db.People.Find(Id);
  if (primary == null)
    return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
  
  // This line is required to load the related entity
  db.Entry(primary).Reference("Secondary").Load();
  
  primary.Secondary = null;
  db.SaveChanges();
  </code></pre>
  
  <p>I had to add the line <code>db.Entry(primary).Reference("Secondary").Load();</code> to get it working. I understand this is because the entity framework is using lazy loading. Can I override this in the Find method though and get rid of the extra line by using an Eager version of the Find method?</p>