You can take a look at the WCF data services .
The WCF Data Services Client Library allows you to query against the data service using the familiar programming of the .NET Framework templates, including using the language integrated query (LINQ).
It can translate LINQ queries, for example:
var selectedOrders = from o in context.Orders where o.Freight > 30 orderby o.ShippedDate descending select o;
will be translated into the following URI: http://localhost:12345/Northwind.svc/Orders?Orderby=ShippedDate&?filter=Freight gt 30
Kirill Polishchuk
source share