开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜