LINQ serialization

Somewhere (I wish I knew where), John Skeet and Mark Gravel were thinking about working on a tool that translated a LINQ query into XML for wire transfer? Does anyone know if they, or someone else did it and made it public?

Scenario: distributed and cross-assembly. This is a nice feature for me at this point.

Perhaps while this is not possible.

+7
source share
1 answer

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

+7
source

All Articles