What is the best way to search for a "word" in a column in database. I use the following code:
query.Where(x => x.Content.Contains(key));
The issue is if the column contains: "I am 2 years old", when searching with the word "year", it shall not find it but the previous code sample finds it.
Also, if I try to add space before and after the key like this:
query.Where(x => x.Content.Contains(" " + key + " "));
It will not find the sentence "Year ago, I had a dream.",
Also, what about capital and lower case in EF.