B
Bill
I use Remoting in my WinForms applications and my forms
usually call some type of GetInitData method of the
Business component that returns a DataSet. The
GetInitData method usually calls classes from my Data
component to populate drop down lists on the form. For
example: Teacher, Subject, ...
The Data components usually have a GetList function which
calls a stored proc and returns a DataTable.
In my Business component, I usually end up adding my
DataTables to one DataSet. It seems like a clean
business function interface this way.
OK, here's the question: Is there another way to add a
DataTable to a DataSet other than using the Copy()
method? Since the DataTables have belonged to another
DataSet via the DataAdapter.Fill, exceptions occur when
using the DataSet.Tables.Add(). I'm concerned with the
performance and memory hit by using Copy().
Thanks in advance for your input,
Bill
usually call some type of GetInitData method of the
Business component that returns a DataSet. The
GetInitData method usually calls classes from my Data
component to populate drop down lists on the form. For
example: Teacher, Subject, ...
The Data components usually have a GetList function which
calls a stored proc and returns a DataTable.
In my Business component, I usually end up adding my
DataTables to one DataSet. It seems like a clean
business function interface this way.
OK, here's the question: Is there another way to add a
DataTable to a DataSet other than using the Copy()
method? Since the DataTables have belonged to another
DataSet via the DataAdapter.Fill, exceptions occur when
using the DataSet.Tables.Add(). I'm concerned with the
performance and memory hit by using Copy().
Thanks in advance for your input,
Bill