I wonder if it is possible to fetch the fully populated object without having to call include
by specifying each child object (with their respective children) in my class.
Currently, I'm doing this:
dbContext.Ocorrencia.Include("Pessoa")
.Include("Endereco")
.Include("Veiculo")
.Where(c => c.id == @id).ToList();
In this case, each child object will also have its own child object, generating a cascade. So, I'm not looking elegant this way to go including item by item.
There is a way to insert all "children" in a single command. As if there were
.IncludeAll()
for example.
I did not find any reference that suited me well.