I have a linq query that I would like to get the query syntax.
var q = customers.Where(x => x.name == "smith");
Is there something like IQueryable.ToQuerySyntaxString ()? which will return something like this:
from cust in clients, where cust.name == "blacksmith";
I ask because I can build my query using the method syntax, but I would like the query syntax to be equivalent to help me learn how to write in alternative form.
Jacob source
share