title: System.Linq.Dynamic - No property or field exists in type ICollection
body: <p>I'm using System.Linq.Dynamic with EntityFramework. My entities are below: </p>
  
  <pre><code>public class Customer
  {
      public Customer()
      {
          CustomerInterests = new List&lt;CustomerInterest&gt;();
      }
      public int Id { get; set; }
      public string Name { get; set; }
      public ICollection&lt;CustomerInterest&gt; CustomerInterests { get; set; }
  }
  public class CustomerInterest
  {
      public int Id { get; set; }
      public int CustomerId { get; set; }
      public int CourseId { get; set; }
      public Course Course { get; set; }
  }
  public class Course
  {
      public int Id { get; set; }
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>Below is my method: </p>
  
  <pre><code>public dynamic Get(long customerId)
  {
      var query = DbContext.Customers.Include("CustomerInterests").Include("CustomerInterests.Course").AsQueryable();
  
      return query.Where(filter =&gt; filter.Id == customerId).Select("new(id,name,customerInterests)");
  }
  </code></pre>
  
  <p>JSON result: </p>
  
  <pre><code>  {
      "id": 2003,
      "name": "name customer",
      "customerInterests": [
        {
          "customerId": 2003,
          "courseId": 2,
          "course": null,
          "id": 2016        
        },
        {
          "customerId": 2003,
          "courseId": 3,
          "course": null,
          "id": 2017
        }
      ]
    }
  </code></pre>
  
  <p>I'm trying to load the property <code>Course</code>, but it's always returning <code>null</code> as you can see in JSON result. </p>
  
  <p>How can I create the selector <code>new(....)</code> to load correctly the property <code>Course</code>. I've already tried <code>new (customerInterests.course) as customerInterests.course</code> without success. 
  Do not forget that I am trying to navigate <code>Customer</code> (object) -> <code>CustomerInterests</code> (Collection) -> for each item load <code>Course</code> (object).</p>
  
  <p>I would appreciate if you could help me on this matter.</p>