title: LoadProperty in Entity Framework 5
body: <p>I upgraded my entity framework 4.3 database first project to the new entity framework 5.
  <strike>Apparently I'm now using DbContext instead of ObjectContext.</strike></p>
  
  <p>I've replaced my old .edmx file with a new one. My old business code, that was previously using my 4.3 .edmx file, now has a problem with code using the <code>LoadProperty</code> method:</p>
  
  <pre><code>using (var context = new MyEntities())
  {
      Models.User user = context.Users.First(x =&gt; x.GUID == guid);
      context.LoadProperty(user, o =&gt; o.Settings);
      return user;
  }
  </code></pre>
  
  <p>It seems that LoadProperty is not an available method in DbContext.</p>
  
  <p>How can I can get strong typed loading anyway?</p>
  
  <p>I suppose I could use </p>
  
  <pre><code>context.Users.Include("Settings")
  </code></pre>
  
  <p>but that is not strong typed and prone to typos.</p>