OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

Support for GroupBy and Aggregate at OData Connected Service #41

Closed jvitor83 closed 8 years ago

jvitor83 commented 8 years ago

With the basic support for groupby and aggregates at the Server ( https://github.com/OData/WebApi/issues/70 ), i think the Client should too be enabled to query those new features.

Actually the Microsoft.OData.Client.dll ( DataServiceQuery ) don't support make those queries. It throws "An unhandled exception of type 'System.NotSupportedException' occurred in Microsoft.OData.Client.dll - The method 'GroupBy' is not supported". But if you send the request manually it works.

Ex: Users.GroupBy(user => user.Login); as http://localhost/odata/Users?$apply=groupby((Login));

jvitor83 commented 8 years ago

Added the issue at the right location: https://github.com/OData/odata.net/issues/596