Selecting some columns with $select not working

Mar 26, 2014 at 9:40 PM
Hi,
In first place I just want to say that it is a great framework!

I'm trying to get few properties of a particular entity from client with the following URL:
http://localhost:25061/odata/Customer?$select=CustomerID,CompanyName

But I get the following exception:

_An exception of type 'System.ArgumentNullException' occurred in System.Web.Http.OData.dll but was not handled in user code

Additional information: Value cannot be null._


This is the line of code for the exception:
return new PageResult<Customer>(
                queryable as IEnumerable<Customer>, 
                Request.GetNextPageLink(),
                Request.GetInlineCount());
queryable as IEnumerable<Customer> returns null, so here it is the problem. I think the problem make sense because queryable is not a pure IQueryable<Customer>.

Is there any workaround for this?

Thank you
Coordinator
Mar 26, 2014 at 9:52 PM
Marked as answer by lelong37 on 3/31/2014 at 10:23 PM
Mar 26, 2014 at 11:41 PM
Thanks a lot!

When are you guys planning to release next version?

Thanks!
Coordinator
Mar 27, 2014 at 7:31 AM
We are planning for end of next week.