S
s.bussing
Hi,
I was wondering when to use TableAdapters (TA) and when to use
DataAdapters (DA).
If I've got a typed dataset containing multiple related tables, I would
say use a DA to fill the dataset. Why should I use TA instead? I can
imagine situations where may be just one table from the dataset is
needed, in that case you might say, use a TA. I agree on that.
What about updating a typed dataset containing multiple related tables.
In that case I also would use a DA rather than TA's. I presume I will
need multiple TA's when updating multiple tables in this typed dataset
(i.e. added orderd and orderdetails in the typed dataset).
Conclusion: If I want to use just a few tables I would better fill the
tables using TA's and if I've got just one table to update I could also
use a TA. But when filling a dataset in one operation and when updating
multiple tables in a dataset I would better use a DA.
Is this correct?
P.S.: I will not use SQL in code, just SPROC's
I was wondering when to use TableAdapters (TA) and when to use
DataAdapters (DA).
If I've got a typed dataset containing multiple related tables, I would
say use a DA to fill the dataset. Why should I use TA instead? I can
imagine situations where may be just one table from the dataset is
needed, in that case you might say, use a TA. I agree on that.
What about updating a typed dataset containing multiple related tables.
In that case I also would use a DA rather than TA's. I presume I will
need multiple TA's when updating multiple tables in this typed dataset
(i.e. added orderd and orderdetails in the typed dataset).
Conclusion: If I want to use just a few tables I would better fill the
tables using TA's and if I've got just one table to update I could also
use a TA. But when filling a dataset in one operation and when updating
multiple tables in a dataset I would better use a DA.
Is this correct?
P.S.: I will not use SQL in code, just SPROC's