Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert OData Uri to his equivalent Linq expression

I'm creating a WCF service whose result is not a strict OData feed (for complicated reasons, business strategy, etc). In addition, the format of the URL is slightly different from OData although most of its features are very similar.

How I can transform the URI in a Linq Expression tree?.

Thanks in advance.

like image 584
Merrin Avatar asked Apr 13 '11 11:04

Merrin


1 Answers

Have a look at Linq2Rest - https://bitbucket.org/jjrdk/linq2rest. It parses an OData query into a LINQ expression, and the other way around. It's available on Nuget as well.

like image 159
jjrdk Avatar answered Oct 12 '22 22:10

jjrdk