title: .Include() .Where() .Select() in Linq to Entities Query
body: <p>I have a Linq query that queries the following tables:  Tasks with a one-to-many link to: TaskLinks and TaskLinks has a one-to-one link to a Table called Entities.</p>
  
  <p>I am trying to select the task, eager load (via .Include) the TaskLinks and select the Entity linked to the TaskLink.  But I need to filter the Task (by Access Level int) and the TaskLinks so that I don't include any Inactive (bool) records.</p>
  
  <p>Here is my Linq query:</p>
  
  <pre><code>Tasks.Where(t =&gt; t.AccessLevel &lt;= 5)
       .Include(tl =&gt; tl.TaskLinks.Where(tl2=&gt; tl2.IfInactive == false)
       .Select(tls =&gt; tls.Entity))
  </code></pre>
  
  <p>I run this query in LinqPad, and I get the following error which I do not understand:</p>
  
  <p>ArgumentException: The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.
  Parameter name: path</p>
  
  <p>How can I re-write this query so I can filter the Included TaskLinks, and select the Entity?</p>
  
  <p>Thank You in Advance!!</p>
  
  <p>Bob</p>