Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate function on Simple OData Client #76

Closed
jackmadeja opened this issue Feb 12, 2015 · 1 comment
Closed

Aggregate function on Simple OData Client #76

jackmadeja opened this issue Feb 12, 2015 · 1 comment

Comments

@jackmadeja
Copy link

I have a query that looks like this:
MyDataSource?$filter=productId eq '442343' and timestamp ge datetimeoffset'2014-01-18T00:00:00Z' and timestamp le datetimeoffset'2015-02-12T00:00:00Z' &aggregation=MONTH
This query will return list that is aggregated on timestamp on 1 month.
I wonder how to implement aggregate with typed syntax:
if I have this:
var listOfData = await client
.For ()
.Filter (x => x.productId == productId && x.timestamp >= timeFrom && x.timestamp <= timeTo)
.FindEntriesAsync ();

@object
Copy link
Member

object commented Feb 12, 2015

Hi Jack,

I guess you are talking about OData aggregation extensions, as describer here: http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/odata-data-aggregation-ext-v4.0-cs01.html

I so, then they are not (yet) implemented in the Simple.OData.Client, but this is something that I can add to the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants