I would like to know if something similar to this (linq to SQL)
customers.Where(c => SqlMethods.Like(c.Name, "%john%"));
is possible to do in Entity Framework. Preferably using lamba expressions.
My goal is to do something like this:
string searchString1 = "%foo";
string searchString2 = "%foo%";
string searchString3 = "foo";
customers.Where(c => SqlMethods.Like(c.Name, searchStringX));