c# - Best way to update a database's serialized objects after changing the object form -
i write objects out database in xml form.
however, if change form of objects, changing name or changing fields, can no longer read them database, makes difficult task of reading them, converting them new form, , writing them out database.
i'd rather not have rename classes everytime change them.
*note: relying on c#'s xmlserialization/deserialization of objects generating xml. perhaps not desirable if change format of objects.
if implement iserializable interface on objects, can implement custom serialization/deserialization routines provide backwards compatibility older versions of objects.
see here example of how can done: iserializable , backward compatibility
Comments
Post a Comment