Entity Framework: Querying Child Entities
问题 I'm learning about Entity Framework at the mo, and am having problems!! Can someone clarify if I am right in thinking that I can't get a parent and a subset of it's children from the db? For example... db.Parents .Include(p => p.Children) .Where(p => p.Children.Any(c => c.Age >= 5)) This will return all Parents that have a child aged 5+, but if I iterate through the Parents.Children collection, all children will be present (not just those over 5 years old). Now the query does make sense to me