I am developing a big modular WPF application
one of these modules are widgets each widget has its own configuration that i can serialize
I want to serialize and save each user’s configuration in database
but the problem is widgets configurations are different with different properties.
How can I save each widget configuration in on field of Database and retrive it when I want.
For more information I have a universal clock and the properties to serialize are Position, UtcTime, Name, etc.
Assuming it’s a relational database, you will need to either create tables specific to each widget type (likely to be impractical, and harder to extend your system with new widgets) or store a blob of data per widget in either binary or text form (makes querying widget configuration more difficult, perhaps impossible).
As a side note, I wouldn’t say this problem is WPF-related at all. It’s more a serialization/extensibility/relational issue.