LinqToQuerystring
LinqToQuerystring copied to clipboard
Can I use it to parse linq expressions to odata syntax query string?
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
@grubyrychu
I emailed Pete directly and he said it is not possible. I would love this feature though.
I found a library that does this. Linq2Rest