S
sheperson
Hi,
I have always had a problem when programming with ADO.NET and Windows
Forms.
It is about how to access database through WinForms. For example I
have an application with several forms and each form deals with a part
of the database. There are some options available:
1- I can create a dataset in the main Form, fill it with data from
the database, and then pass it to other child forms as an argument.
The child forms do what they want with the dataset and at the end, the
main Form updates the database with the new information.
2- Each form has it's own dataset, connects to the database, fills the
dataset and then updates the database when it wants to be closed.
But non of the above approaches are good.
I wonder if anyone has an idea about it.
Thanks in advance.
I have always had a problem when programming with ADO.NET and Windows
Forms.
It is about how to access database through WinForms. For example I
have an application with several forms and each form deals with a part
of the database. There are some options available:
1- I can create a dataset in the main Form, fill it with data from
the database, and then pass it to other child forms as an argument.
The child forms do what they want with the dataset and at the end, the
main Form updates the database with the new information.
2- Each form has it's own dataset, connects to the database, fills the
dataset and then updates the database when it wants to be closed.
But non of the above approaches are good.
I wonder if anyone has an idea about it.
Thanks in advance.