title: How to disable eager loading when using InMemoryDatabase
body: <p>I have an EF.Core 2.1 DataContext which I have not enable lazy loading for.</p>
  
  <p>My configuration looks like this: </p>
  
  <pre><code>services.AddDbContext&lt;DataContext&gt;(options =&gt;  
      options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
  </code></pre>
  
  <p>My tests use the same DataContext but use different options like so: </p>
  
  <pre><code>options.UseInMemoryDatabase(databaseName: "ProjectSpecs")
  </code></pre>
  
  <p>This is all working fine except that my in memory DataContext is eager loading everything. </p>
  
  <p>If I ask for an entity is it loading all the related objects.</p>
  
  <p>This means if I want to actually load a related property and forget to do so, my tests are passing as the related entity is loaded. But in the real application it is failing due to the <code>.include</code> being forgotten.</p>
  
  <p>Can I make the in memory DataContext behave the same as the real one?</p>