Hello Everyone -
I was playing around with LINQPad and was curious how I could implement similar behavior in my own app, namely: how can I allow the user to input a LINQ query against a known database context as a string and then run that query in the application?
For example, if I have the LINQ-to-SQL datacontext for the Northwind database in my application, I want the user to have the ability to type
from cust in Customers
where cust.City == "London"
select cust;
And I'll return the results of calling .ToList() on this query.
Any ideas/tips/links?
Thanks kindly
Mustafa