What first? Merge or acceptchanges?

  • Thread starter Thread starter =?ISO-8859-1?Q?Roland_M=FCller?=
  • Start date Start date
?

=?ISO-8859-1?Q?Roland_M=FCller?=

Hi,

we have a client-server-application.
On the client we add, delete things to/from a dataset then we save it
via webservice; after that the dataset on the client must be updated.

We do this with
- DataSet.Merge (to get new Ids for example)
- DataSet.AcceptChanges (to remove deleted rows for example)

What to do first? I am not really sure - how do you handle?


Greets
Roland
 
Merge then AcceptChanges. No need to call Merge if you are not returning
any new\modified data from your datasource.
 
Back
Top