I have a case where I need to bring all the items of the parent object where it has a certain condition, for example:
ctx.Pai
.Where(x=> x.Ativo == true)
.Include(Filhos)
.Where(TrazerApenasFilhosAtivos);
I've tried using Any, but looking at SQL it creates an Exists and that's not what I wanted, I wanted to bring the active parent and all of their children active too.
How to do it?