2

I have an instance of class loaded by db.MyclassSet.AsNoTracking(). So the entity is not tracked on the context. I need to know if the OneToMany property of MyClass is loaded.

If I try to access by reflections I get an exception:

When an object is returned with a NoTracking merge option, Load can only be called when the EntityCollection or EntityReference does not contain objects.

Any idea?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.