Existing algorithm for merging DataSets after GetChanges() and withidentity column?

F

Frank Hauptlorenz

Dear all,

is there an algorithm existing so that I can use DataTables within
DataSets with identity columns together with GetChanges()?

Let me explain this step by step:
- Complex DataSet is existing / modified on the client, Rows with
Identity columns are created
- Only the Changes are send to the server with GetChanges()
- The DataSet is saved to the SQL Server within the TableAdapterManager
- The DataSet is send back to the client including the new Identity
column values

-> How can I now merge the changes back to the Client DataSet?

I can create a new algorithm for this but like to use an existing one.

Thank you,
Frank
 
F

Frank Hauptlorenz

Dear all,

I've written now an own algorithm which sends the new Identity-Columns
in the changed DataSet back to the Client and changes them there (with
cascading updates within the DataSet).
Then it merges all the changes back to the local DataSet on primary key
base.

Works like hell.
Frank
 

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