G
Guest
Hi, I have trouble finding info on the following:
I have an object myDataAccessObject that contains heaps of SQLDataAdapters
and derivatives thereof. These are auto-generated for me by VS.
I want to be able to call the update-method on all of these (in effect doing
a database-dump) with myDataSet as input (since that's where my data is).
now I *could* put all the adapters into a list and loop through them,
calling the update method, but that's not pretty and I will have to manage
that list as the DB expands so I don't want to do that.
basicly I want to:
-get all sqladapters from myObject
-call "Update" with parameter myDataSet on all of them
that shouldn't be so hard, yet I am stuck and am finding no docs on it.
yours
Andreas Knudsen
I have an object myDataAccessObject that contains heaps of SQLDataAdapters
and derivatives thereof. These are auto-generated for me by VS.
I want to be able to call the update-method on all of these (in effect doing
a database-dump) with myDataSet as input (since that's where my data is).
now I *could* put all the adapters into a list and loop through them,
calling the update method, but that's not pretty and I will have to manage
that list as the DB expands so I don't want to do that.
basicly I want to:
-get all sqladapters from myObject
-call "Update" with parameter myDataSet on all of them
that shouldn't be so hard, yet I am stuck and am finding no docs on it.
yours
Andreas Knudsen