UpdateDataset custom DTO's

Topics: Data Access Application Block
Aug 29, 2007 at 5:46 PM
Edited Aug 29, 2007 at 10:16 PM
I am trying to do batch updates on custom objects (custom DTO's).

first i create the dataset with original data from the db
secondly i change the dataset depending on the collection of the custom DTO.

thirdly i do the updateDataset.

Is this the best approach for batch updating the custom objects?

i am populating the dataset twice, once when i first get it and then when i am trying to save.
when i try to populate the dataset with custom object the datarow.rowstate is set to added..

so when i do the updatedataset only the insert command gets executed.