B
BillE
I have a VS 2008 solution containing a number of projects, including windows
forms, web forms, business classes, and a data access layer.
I have been diligent about separating UI from business rules and objects,
and the data access layer.
I'm not sure how this should work with typed datasets.
To populate a typed dataset, to be used as a datasource for a datagridview,
for example, all three layers have to create an instance of the typed
dataset. The business class needs to get an instance of the typed dataset
from the data access layer, and pass it to the UI layer.
It seems inappropriate to me that a separate function in the data access
layer should be necessary for each different typed dataset which is required
in the solution. A separate function already exists in the business
objects layer for each type of dataset required.
I don't want to use classes as data sources instead of typed datasets,
because datagridview controls aren't sortable when classes are used as the
datasource, unfortunately.
Consequently, I am embarassed to admit that I have been using generic
datasets. I assume I am lacking an important piece of the puzzle, so I
would appreciate it if someone could help me with this.
forms, web forms, business classes, and a data access layer.
I have been diligent about separating UI from business rules and objects,
and the data access layer.
I'm not sure how this should work with typed datasets.
To populate a typed dataset, to be used as a datasource for a datagridview,
for example, all three layers have to create an instance of the typed
dataset. The business class needs to get an instance of the typed dataset
from the data access layer, and pass it to the UI layer.
It seems inappropriate to me that a separate function in the data access
layer should be necessary for each different typed dataset which is required
in the solution. A separate function already exists in the business
objects layer for each type of dataset required.
I don't want to use classes as data sources instead of typed datasets,
because datagridview controls aren't sortable when classes are used as the
datasource, unfortunately.
Consequently, I am embarassed to admit that I have been using generic
datasets. I assume I am lacking an important piece of the puzzle, so I
would appreciate it if someone could help me with this.