I tried to solve this problem all day and did not find a solution that really works. When I search for some data, I want to filter the data based on a few words.
My input value is shared using the standard .Split function.
string[] searchstrings = MessageResult.Split(' ');
I made a query (which obviously does not work properly) that tries to filter out all entries matching each line in searchstrings.
var suggestions = (from a in query from w in searchstrings where a.Message.ToLower().Contains(w.ToLower()) select a).Distinct();
query is my variable that has all the data. How can I make this query actually match only records containing each row in searchstrings?
Alexander
source share