As the title suggest I am looking for a way to do a where clause in combination with an include.
Here is my situations: I am responsible for the support of a large a
Disclaimer: I'm the owner of the project Entity Framework Plus
EF+ Query IncludeFilter feature allows filtering related entities.
var buses = Context.Busses .Where(b => b.IsDriving) .IncludeFilter(x => x.Passengers.Where(p => p.Awake)) .ToList();
Wiki: EF+ Query IncludeFilter