EF4 STE Access to deleted entity
How can I access deleted entity in self tracking entities graph? I understand that in case I use MarkAsDeleted on the objects contained in a collection they are moved to ObjectsRemovedFromCollectionProperties of the parent entity, but how to access deleted ob开发者_开发问答jects that are not in a collection?
Thanks Jakub
Deleted reference is not directly exposed but you can debug ApplyChanges
to see where it comes from. If you want to have the reference to deleted object you can simpy use return value from MarkAsDeleted
.
精彩评论