Hello there,

I have a class that has some properties.
Behind thouse properies stand member variables of different types. Now I have the task to serialize them to a database.

By serializing I mean saving, and eventually restoring the data from the database. For database access I use ADO.

I imagine that inside the class I will have a function that will read all variables one by one, will prepare some string or binary data and will write it to a field in the database. Later similar function will reverse the process.

Before implementing that, however I would like to know if
there is somehting smarter, as I believe this is a standart task done many times before.

Thank you.