I want to be able to find a TheType that contains an arrayOfArraysOfIds that has any element of the list I provide. The thing is when I do the query down bellow, it doesn't return anything. What is the right format or what function should I use instead?
public class TheType
{
public IList<IList<string>> arrayOfArraysOfIds;
}
theCollection.AsQueryable<theType>().
Where(t => t.arrayOfArraysOfIds.ContainsAny(listOfIds));
The listOfIds is of type IEnumerable<IList<string>>
as required by the ContainsAny function and it is constructed from a List as described here.
The problem is that the query doesn't return anything even if there's an element in the DB that should be returned.