var config = Db4oEmbedded.NewConfiguration ();
using (var container = Db4oEmbedded.OpenFile (config, FILE))
{
var foo = new Foo ("Test");
container.Store (foo);
foo.Name = "NewName";
container.Store (foo);
}
Any way to resolve the history of container for foo in the format below?
Foo created with values "Test" Foo
Foo’s property "Test" changed to "NewName"
You can do by implementing event-handlers. Basically you can register a event-handler for the creating and the updating event. Like this:
For viewing value changes you maybe need to peek the old state in the event-handler. You can do this like this:
Of course the comparison and printing is the work you have to do. There’s nothing built in for that.