When searching for a word in the search field I shall be enable to find a word for instance “cookies” by typing “Coo” or “oOk”. what LinQ syntax do I need to create this functionality?
Beside, the functionality should take account to case insensitivity for instance a word named “ComPuTER” should be found by typing the word “MpUT”?
You can use
contains:I used ToUpper to ensure that the table and the source are the same case, so that “Coo” will match “cookies”
There’s also a Like method in SQLMethods, but I have not used this…
(See more here: http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/10/16/linq-to-sql-like-operator.aspx)