The code we\'re using is straightforward in this part of the search query:
myCriteria.Add(
Expression.InsensitiveLike(\"Code\", itemCode, MatchMode.Anywh
You can create an instance of LikeExpression to accomplish this. In this example I am escaping % with a backslash (which itself has to be escaped):
var itemCode = "ItemWith%Symbol";
itemCode = searchCode.Replace("%", "\\%");
var exp = new LikeExpression("Code", itemCode, MatchMode.Anywhere, '\\', true);
myCriteria.Add(exp);
I didn't see a static method to return a LikeExpression using this overload.
By the way, if you're using SQL Server it is case insensitive by default.