Hi!
I want to build a System.Linq.Expression from the string List like this:
System.Linq.Expressions.Expression x = null;
foreach (string s in GetWords(input))
{
/* Create Expression */
}
so I could use:
.Where(x =>
x.Name.Like(string.Format("%{0}%", word1)) ||
x.Name.Like(string.Format("%{0}%", word2)) ||
x.Name.Like(string.Format("%{0}%", word3)) ||
x.Id.ToString().Like(string.Format("%{0}%", word1)) ||
x.Id.ToString().Like(string.Format("%{0}%", word2)) ||
x.Id.ToString().Like(string.Format("%{0}%", word3)) ||
);
x
is MyObject