title: LINQ - Include Child Property of Child Property
body: <p>I have a child property of a child property in my entity. I have a Get method as such:</p>
  
  <pre><code>List&lt;T&gt; Find(Expression&lt;Func&lt;T, bool&gt;&gt; where, 
               params Expression&lt;Func&lt;T, object&gt;&gt;[] toInclude);
  </code></pre>
  
  <p>The way I normally load just the first child property is to do this:</p>
  
  <pre><code>myManager.Find(x =&gt; x.Id == id, x.ChildB);
  </code></pre>
  
  <p>However, I would like to be able to pull back the ChildC property which is a child of my ChildB property.</p>
  
  <p>Is there anyway to perform this with the method signature I provided? I know normally I could do a .Include("ChildB.ChildC").</p>
  
  <p>Edit: Added code per request</p>
  
  <pre><code>using(MyContext context = new MyContext())
  {
      ObjectQuery&lt;T&gt; objectQuery = (ObjectQuery&lt;T&gt;)context.CreateObjectSet&lt;T&gt;();
      foreach(var include in toInclude)
      {
          objectQuery = objectQuery.Include(include);
      }
  
      return objectQuery.Where&lt;T&gt;(where);
  }
  </code></pre>