title: Entity Framework Include() returns null navigational property
body: <p>I am having issue with the Include function. I have a Team class that has an Owner property of type Owner. I have a helper function that wraps my EF calls like below;</p>
  
  <pre><code>public Task&lt;List&lt;T&gt;&gt; GetManyAsync(
      Expression&lt;Func&lt;T, bool&gt;&gt; filter = null,
      Expression&lt;Func&lt;T, object&gt;&gt; includeProperties = null)
  {
      IQueryable&lt;T&gt; query = _dbSet;
  
      if (filter != null)
      {
          query = query.Where(filter);
      }
  
      if (InstanceHelper.IsSomething(includeProperties))
      {
          query.Include(includeProperties);
      }
  
      return query.ToListAsync();
  }
  </code></pre>
  
  <p>And I use it like this</p>
  
  <pre><code>var teams = await DataAccess.Team.GetManyAsync(e =&gt; e.Owner.Id == userId, e =&gt; e.Owner);
  </code></pre>
  
  <p>But it returns the list of Teams with a NULL Owner property. Any idea what I am missing here?</p>