Tag Archives: Entities

Cannot explicitly load property for entities that are detached. Objects loaded using the NoTracking merge option are always detached

While working with the POCO using Entity Framework I received the “Cannot explicitly load property for entities that are detached.  Objects loaded using the NoTracking merge option are always detached” error message. I tried Include placed at different places and also used ctx.ContextOptions.LoadProperty method too. At one point it was working but with a different error message, then I realized may be since there is no data in the database this is giving issues. When I loaded some dummy data in the database it started working as expected.

This link is very helpful working with Include.