|
Hi
I'm making a application that allow easy adminsitration of a databas. The application consists of one main form and a number of smaller froms. My problem is how to design it so that all the forms can use the same DataSets/DataViews. What is the best way of doing it?
For the moment I have all my Data-related objects in the Main Form. That, of cource, leads to difficulties when trying to reach and edit the information in the smaller forms. I have though about creating a middlelayer between the forms and the database containing all DataSets and such as well as the DataAdapters and update logic. This I thing would be a nice solution well in line with the object oriented paradigm.
Another approach would be to crate a DataHolder class that just keeps all DataSets/DataAdapters and so on. But they will be created and executed in the forms.
Suggestions?
|