There is no LINQ provider that I know of for general WCF-based queries. LINQ to ADO.NET Data Services , however, allows you to query the Entity model by WCF / REST.
From Andy Conrad's Blog :
static void Main(string[] args)
{
var context=new WebDataContext("http://localhost:18752/Northwind.svc");
var query = from p in context.CreateQuery<Product>("Products")
where p.UnitsInStock > 100
select p;
foreach (Product p in query)
{
Console.WriteLine(p.ProductName+", UnitsInStock="+p.UnitsInStock);
}
}
source
share