I have code like this:
.Where(o => o.Parents.Contains(name))
The above code does not work because Parents contain a list of Parent objects, which in turn have a property Name. I want to check against the Name property, but it's a list so how could I do this check? So I want the Where to be true when any of the Parent objects in the list have Name property set to name.