string1: How
string2: How Are you ?
What i want to do is select all records from the database by checking string2 against string1 and selecting any record which have either “How” or “Are” or “you”.
pager1.ItemCount = appliedQuery.Where(q => q.string1.Contains(string2)).count();
PlEASE NOTE: String1 is just one word and I just want to get all records in the db with any occurance of any word in string2.
I understand that string2 needs to split, however after the split how do i use it in the linq query statement to fetch the records?
Thanks in advance
Check out how I constructed my linq query. I hope this helps.
Just try to copy and paste the code in your console app to see the result.