J
jogisarge
hello,
i try to develop a winform pgm in three tier architecture(UI,BAL,DAL).
short example:
I have a winform with a datagridview which shows products.
I want to change data in the grid.
there is a button (update) on the form.
By clicking this button, the changed data should be updated in the
database.
1. By starting the programm the products should be loaded by the BAL
from DAL.
and delivered to the Datagridview.
2. By clicking the Update-Button the Data should be updated by the BAL
and DAL.
Now my question:
how should the Data been passed through the tiers ?
By using Datasets or with Generic List<T> oder ?
So far i tried this:
DAL.getProducts provides a List<product> to the BAL
BAL.getProducts provides a List<product> to the UI
UI connects the List<product> to the Datagridview
BUT: How can i detect changed products ?
Ok, please be sorry for my bad english and i hope anybody understands
my problems.
I would be glad, i anybody has a example for me.
bye jogi
i try to develop a winform pgm in three tier architecture(UI,BAL,DAL).
short example:
I have a winform with a datagridview which shows products.
I want to change data in the grid.
there is a button (update) on the form.
By clicking this button, the changed data should be updated in the
database.
1. By starting the programm the products should be loaded by the BAL
from DAL.
and delivered to the Datagridview.
2. By clicking the Update-Button the Data should be updated by the BAL
and DAL.
Now my question:
how should the Data been passed through the tiers ?
By using Datasets or with Generic List<T> oder ?
So far i tried this:
DAL.getProducts provides a List<product> to the BAL
BAL.getProducts provides a List<product> to the UI
UI connects the List<product> to the Datagridview
BUT: How can i detect changed products ?
Ok, please be sorry for my bad english and i hope anybody understands
my problems.
I would be glad, i anybody has a example for me.
bye jogi