I'm working with Entity Framework 6, I made all the necessary settings. I have a Person Class that owns a Property of the Type Address, inside address I have a property Municipio that by the end has a property of Type UF. I have a function that I need to retrieve all the people registered and display on a grid, so far so good, but the data of the objects that are part of my person class, is not loaded. I used this code:
_dbcontext.Pessoas.Include(x => x.Endereco.Municipio.Uf).ToList();
When I do the Project Debug EntityFramework generates the Sql correctly, I copy the sql and execute in the sqlserver, the data is displayed the way I expected, but the information that the Entity brings from the database is not included in the properties of the my person class, just the existing data in the person table and they are loaded.