codecutout / StringToExpression

Convert strings into .NET expressions
MIT License
95 stars 22 forks source link

Complex and Collection Literals #8

Open syn-sanket-mistry opened 5 years ago

syn-sanket-mistry commented 5 years ago

Is there any plan to support Complex or collection literals for OData.

http://docs.oasis-open.org/odata/odata/v4.01/cs01/part2-url-conventions/odata-v4.01-cs01-part2-url-conventions.html#sec_ComplexandCollectionLiterals

alex-davies commented 5 years ago

Currently the parser only supports the $filter expression, how do collection literals work with filter expressions?

syn-sanket-mistry commented 5 years ago

Not really sure but , there are any and all functions which can do that.

https://stackoverflow.com/questions/33707867/odata-over-web-api-how-to-query-nested-properties?answertab=votes#tab-top

http://docs.oasis-open.org/odata/odata/v4.01/cs01/part2-url-conventions/odata-v4.01-cs01-part2-url-conventions.html#_Toc505773283

alex-davies commented 5 years ago

Interesting. That might be tricky to do as the parser would need to know how to handle processing lambda parameters

You are more than welcome to have a go at extending the definitions to add the any/all methods. It is definitely an interesting challenge

jeangatto commented 4 years ago

Any update on the functionality of filtering by nested collections?

BluePalmTree commented 1 year ago

I tried my hand on it. It's my first time contributing to something to Github If someone is interested here are my commits: https://github.com/codecutout/StringToExpression/commit/78a72673ab4a46c608a4ec23eca4f5e022ee2b82