How can i do this? I saved the object in db4o, for example:
class Person {
string _name;
int _age;
}
now, after the hundrets of Persons stored in db, I added a new field:
class Person {
string _name;
int _age;
bool? _newField;
}
When I load old classes into a new class, _newField will be null or the default value. When I put it back in db, the added field will be deleted.
How to update all existing objects using a new field? Is it possible?
source
share