I use EF 4.1 and the first code in the MVC project and AutoMapper to map objects to view models.
Prior to using the code for the first time, I was able to exclude navigation properties to prevent things from loading that weren't loaded yet. I use .Include () in my queries to include the links I need to avoid extra visits to the database.
However, with the first code, at first my entity only provides the entity property (or ICollection, if there are more than one). How can I find out if it is loaded without starting the download?
Assuming this can be done, is there a way to do this by default for AutoMapper, so I donβt need to explicitly exclude members for each individual organization?
Morten mertner
source share