title: Entity Framework Core 1.0.0 Disable Eager/Lazy Loading
body: <p>Can't seem to find any mention of this for EF Core. I've found examples to disable lazy loading in prior EF versions. I have an asp.net core, MVC6, Web Api, and AngularJS site I'm working on. </p>
  
  <p>In the app, I have a table Members and a table MemberStateActions which has a foreign key reference to the Members table. I'm selecting the data using the query below, and then returning the data via Web Api call as Json return type.
  The resulting MemberStateActions object returned via Web Api has the MemberStateAction.Member object populated. I did not eager load the Member data using .include. I did not lazy load the Member object by calling the property. I don't understand why the Member data is automatically populated. I've read that json serialization maybe be calling the member property causing the lazy loading of the member data before being sent in the Web Api response. Not sure if this is the cause. </p>
  
  <p>Bottom line, I'm looking on some direction as to how to prevent this automatic loading of the member object. Possibly by disabling lazy loading? </p>
  
  <pre><code>        var q = (from x in _context.MemberStateAction
                   where x.MemberId == memberID
                   select x);
  
          return q;
  </code></pre>