title: How can I return IQueyrable DTO from Webapi Get so I can use Odata filters
body: <p>I'm trying to use a Odata filters with ODP.net with Entity framework inside of web api project ASP.NET MVC 4.0 RC.  I want to return an IQueryable of OwnDTO . I get an internal 500 error without any details. I know there is an error generation bug with webapi RC, but I dont think that bug is my issue. </p>
  
  <pre><code>    Get http://localhost:51744/api/Owner  called using Fiddler
  
  
  
  
      [Queryable]
      public IQueryable&lt;OwnDTO&gt; Get()        
      {            
          using (Entities context = new Entities())
          {
              var query = from item in context.Owners
                          select
                          new OwnDTO
                          {
                              Name = item.Name
  
                          };
              return query.AsQueryable();
          }
      }
  </code></pre>
  
  <p>//very simple for example</p>
  
  <pre><code> public class OwnDTO
      {
          public string Name;
      }
  </code></pre>
  
  <p>I do not want to have use my Oracle EF generated classes (DAO) to return from my Get, but I know I can if I replace EntityObject with a more friendly interface.  If I return IEnumerable it works, but I want Odata filters.</p>
  
  <hr>
  
  <p>Update incase someone wants a working example.. Automapper or simliar should be used in the linq and the context should injected.</p>
  
  <hr>
  
  <pre><code>    [Queryable]
      public IQueryable&lt;OwnDTO&gt; Get()        
      {            
          {
              var query = from item in Hack._EFContext.Owners
                          select
                          new OwnDTO
                          {
                              Name = item.Name
  
                          };
              return query.AsQueryable();
          }
      }
  </code></pre>
  
  <p>That works fine, but it looks like Odata is removed post RC. So I need to search down another path.</p>