This project is read-only.

Undelete previous versions = Undo?

Apr 23, 2013 at 5:27 PM
As I know NDatabase don't delete entities. They will only be marked as "deleted". So I tried to restore such a deleted entity. But acessing the object by objectID will throw the exception 206 - "Entity is marked as deleted".

Is there a way to reactivate a deleted entity ?

If this is possible, this could be a nice way to implement a Undo functionality. It would look like a combination of the Memento Pattern (storing all states) and a Event Sourcing Pattern which logs the changed entiies.

What Do you think about this idea?

Kind regards,
Apr 29, 2013 at 8:20 AM
that sounds like interesting idea, but I already considered many other ideas in the area of deleted objects. My actual thoughts are put into the ticket:

I would like rather to reuse this areas of disk, instead of doing resurrection. Rollbacks where implemented as the natural undo mechanism, the only thing which NDatabase is missing now is reusing these deleted objects space, to manage in better way the disk space.

Thanks for suggestion.