I know about dynamic LINQ, but I'm wondering if there's a way to do this without building up a string of a query. I'd like to be able to use all of those nice built in LINQ calls like Contains, Count, Distinct, etc without having to worry about the SQL needed to create them. What I want to do is:
AdventureWorks2008R2Entities AWE = new AdventureWorks2008R2Entities();
var query = AWE.Employees.AsQueryable();
object FieldToQuery = ?;
if (textBox1.Text != "") query = query.Where(x => x.FieldToQuery.Contains(textBox1.Text));
Is something like this possible some how, or is it going against the fundamentals of LINQ?