locked
How can I detach a deleted entity? RRS feed

  • Question

  • *resolved* When you ((IRevertibleChangeTracking)entity).AcceptChanges(); a deleted entity it detaches it.


    (Left this post up here incase someone else googles the same thing)


    How can I detach a deleted entity?


    The only way I could think of to do it was to re-add it, and then detach it. However, this will only work if my EntitySet CanAdd (otherwise it will throw an exception).

    (I can not detach or attach, as it throws an invalid operation exception)


    Wednesday, November 3, 2010 10:10 PM

Answers