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

Can I use it to parse linq expressions to odata syntax query string? #66

Open
ghost opened this issue Feb 3, 2016 · 2 comments
Open

Comments

@ghost
Copy link

ghost commented Feb 3, 2016

So for example

Func<Hotel, bool> priceMaxFunc = x => x.Price <= 50;
Func<Hotel, bool> priceMinFunc = x => x.Price >= 20;

then join Funcs into expression

Expression<Func<Hotel, bool>> expression = x => priceMaxFunc(x) && priceMinFunc(x);

and translate to Price lt 50 and Price gt 20

@pvanroos
Copy link

pvanroos commented Aug 9, 2016

@grubyrychu

I emailed Pete directly and he said it is not possible. I would love this feature though.

@pvanroos
Copy link

pvanroos commented Aug 9, 2016

I found a library that does this. Linq2Rest

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

No branches or pull requests

1 participant