Ok, this one has me stumped.
I have a collection of objects called Interviews. An Interview has a collection of Notes in it. A Note has string (nvarchar(max) on the database) property called NoteText.
I have a List called keywords.
What I need to do is find all interviews that have a Note that has any of the keywords within its NoteText property.
I have this so far:
var interviewQuery =
from i in dbContext.Interviews //dbContext was created with Telerik OpenAccess
.Include(n => n.Notes)
.Where(i => i.Notes.Any(n => keywords.Contains(n.NoteText) ))
orderby i.WhenCreated descending
select i;
I don't get an error, I just don't get any results either.