|
-
December 8th, 2004, 09:23 AM
#1
Is DataSet.merge() - buggy?
Hello,
I think I found a bug in the .NET framework. I used the merge() function of the DataSet class and it works incorrectly. So here is my code:
Code:
DataSet dsChanges = m_ds.GetChanges();
..
dsChanges.Update();
..
dsChanges.AcceptChanges();
m_ds.Merge(dsChanges);
In this case through calling update and acceptchanges() the rowstate of each row in dsChanges switched to Unmodified. if i merge dschanges back into m_ds the rowstate will not be updated in m_ds. Therefore I get an error everytime this code will be executed a second time.
what is the best solution? Should i remove the rows from m_ds at first and insert the rows again? i am a little bit confused.
Do I anything wrong?
Any hints?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|