What first? Merge or acceptchanges?

  • Thread starter =?ISO-8859-1?Q?Roland_M=FCller?=
  • 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
 
G

Greg Robinson

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top