M
Mike
Hi,
Right now I am trying design user data persistence in my winforms app and
have a few questions. Right now the app is designed to save to a local file
however down the road it might be changed to saving to a database. So, I
was thinking about designing a dataset that if I do switch to a database
that it will be easily be converted and dataset could be written to file as
of right now. Is this a good idea or should I just create a custom class?
Also, I have 4 forms which can be open at the same time and can be accessed
in no particular order and do need to persisted. How can I save each?
Should I save to the dataset/class at the time when each form is ready to
persisted and persist the dataset/class each time? Or should I have a custom
class for each form and persist each class until the time when each form
needs to be saved and then add each to the dataset/class?
Thanks for your time
Right now I am trying design user data persistence in my winforms app and
have a few questions. Right now the app is designed to save to a local file
however down the road it might be changed to saving to a database. So, I
was thinking about designing a dataset that if I do switch to a database
that it will be easily be converted and dataset could be written to file as
of right now. Is this a good idea or should I just create a custom class?
Also, I have 4 forms which can be open at the same time and can be accessed
in no particular order and do need to persisted. How can I save each?
Should I save to the dataset/class at the time when each form is ready to
persisted and persist the dataset/class each time? Or should I have a custom
class for each form and persist each class until the time when each form
needs to be saved and then add each to the dataset/class?
Thanks for your time