title: What is the recommended method of explict loading in Entity Framework 6 from a partial class?
body: <p>I am upgrading from EF4 to EF6 and just working through the breaking changes.  I am having some trouble with the missing <code>.IsLoaded</code> and <code>.Load</code> methods no longer apparently available.  Previously I had some code to make sure that if data was available it was loaded, but not sure how this should be changed with the upgrade to EF6.</p>
  
  <p>EF4 Code:</p>
  
  <pre><code>if ((this.EntityState == EntityState.Modified) || (this.EntityState == EntityState.Unchanged)) 
  {
      if (!this.AccountReference.IsLoaded)
      {
          this.AccountReference.Load();
      }
  }
  </code></pre>
  
  <p>Now the <code>.EntityState</code>, <code>.IsLoaded</code> and <code>.Load</code> are all missing.  What I've seen so far <a href="http://msdn.microsoft.com/en-us/data/jj574232.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/data/jj574232.aspx</a> suggests <code>context.[stuff]</code>, however since this is in a partial class there isn't a <code>context.[stuff]</code> for me to use.</p>