1

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 objects that are not in a collection?

Thanks Jakub

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
Jakub
  • 57
  • 5

1 Answers1

1

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.

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
  • 1
    I have finally found that deleted references are thrown into OrginalValues Property of the parent object. – Jakub Apr 20 '11 at 12:24