Although there is information on the net that gives you a guide to answer this question, it is normally in English and is distributed in several documents, so I have decided to publish it so that others who are looking for information in Spanish have an idea.
I assume that we know how to relate the entities via the entity framework and what we are going to deal with here is how to retrieve all the information.
problem I have a class structure like this
As I anticipated, we have the entity configured in the ContextBase in such a way that they are related, but I have the problem that I do not know how to retrieve several levels, that is, retrieving master - detail is a piece of cake (there are only 2 levels) but in this case there are 5 levels. How can i do this then?
When reading documentation it said that it was not possible, but it is possible and we will see it later. This Solution has been tested with EF Core 3.1 and 5.0.