title: $Expand Failing on Webapi Queryable end point using Entity Framework
body: <p>I am trying to do $expand on queryable end point and getting this error.</p>
  
  <pre><code>Object of type 'System.Linq.EnumerableQuery`1[System.Web.Http.OData.Query.Expressions.SelectExpandBinder+SelectAllAndExpand`1[pc_process_api.Models.Task]]' cannot be converted to type 'System.Collections.Generic.IEnumerable`1[pc_process_api.Models.Task]'.
  </code></pre>
  
  <p>The object are defined as many to many using the TaskComponent table.
  My Code:</p>
  
  <pre><code>    [EnableQuery(MaxExpansionDepth = 5, PageSize = 10)]
              [Route("api/tasks")]
              public IQueryable&lt;Task&gt; GetTasks()
              {
                  return db.Tasks.AsNoTracking().AsQueryable();
              }
  public class Task 
      {
          public Task()
          {
              TaskComponents = new List&lt;TaskComponent&gt;();
          }
          [Key]
          [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
          public long TaskId { get; set; }
          [Required]
          public string Name { get; set; }
  
          public virtual ICollection&lt;TaskComponent&gt; TaskComponents { get; set; }
      }
  
   public class TaskComponent 
      {
          [Key]
          [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
          public long TaskComponentId { get; set; }
  
          [Required]
          public long SequenceNumber { get; set; }
  
          [MinLength(3, ErrorMessage = "Min Length is 3 chars"), MaxLength(50, ErrorMessage = "Max Length is 50 chars")]
          public string DisplayName { get; set; }
  
          [Required]
          public long TaskId { get; set; }
          public  Task Task { get;  set; }
  
  
          [Required]
          public long ComponentId { get; set; }
          public  Component Component { get;  set; }
      }
  
   public class Component
      {
          public Component()
          {           
              TaskComponents = new List&lt;TaskComponent&gt;();
          }
          [Key]
          [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
          public long ComponentId { get; set; }
          [Required]
          public string Name { get; set; }
  
          public ICollection&lt;TaskComponent&gt; TaskComponents { get; set; }
          public string Code { get; set; }
      }
  </code></pre>
  
  <p>the url i am trying is <a href="http://localhost:12346/api/tasks" rel="nofollow noreferrer">http://localhost:12346/api/tasks</a>?$expand=TaskComponents</p>
  
  <p>Please suggest.</p>