title: The specified type member 'Disabled' is not supported in LINQ to Entities only when using .ToDataSourceResult()
body: <p>I have a linq which a simple where statement and a simple select. If i return the result as .ToList() everything works fine. If I change it to .ToDataSourceResult(request), I get exception with the error message &quot;The specified type member 'Disabled' is not supported in LINQ to Entities only when using...&quot; but I can't find where the 'Disabled' is coming from, and why this happens only for DataSourceResult. Any ideas why this is happening or how to solve this?</p>
  <p>Here is my Code:</p>
  <pre><code>public ResponseData&lt;DataSourceResult&gt; GetMunicipalitiesDDL(DataSourceRequest p_request, string p_filterText)
  {
      var response = new ResponseData&lt;DataSourceResult&gt;();
  
      try
      {
          using (var context = new DBEntities())
          {
              response.Data = (from x in context.MUNICIPALITY_VIEW
                               where x.AC_MUNICIPALITY != null
                               select new SelectListItem
                               {
                                   Text = x.AC_MUNICIPALITY,
                                   Value = x.AC_MUNICIPALITY
  
                               }).ToDataSourceResult(p_request);
          }
      }
      catch (Exception ex)
      {
          response.Status = ResponseStatus.Unsuccessful;
          response.Message = ex.Message;
      }
  
      return response;
  }
  </code></pre>