Groups | Blog | Home
all groups > dotnet ado.net > july 2005 >

dotnet ado.net : What first? Merge or acceptchanges?


Greg Robinson
7/6/2005 11:43:57 AM
Merge then AcceptChanges. No need to call Merge if you are not returning
any new\modified data from your datasource.


[quoted text, click to view]

Roland_Müller
7/6/2005 5:02:48 PM
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
AddThis Social Bookmark Button