HighTechTalks DotNet Forums  

very strange behavior of the method GetChanges(...) from the DataSet class

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss very strange behavior of the method GetChanges(...) from the DataSet class in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
evald80@gmail.com
 
Posts: n/a

Default very strange behavior of the method GetChanges(...) from the DataSet class - 10-24-2007 , 04:15 PM






Hello !



i'm using a typed DataSet called myDs. This dataset has 2 Tables,
Table1 and Table2.

i have created a DataSet like this:



myDs dsOld = new myDs();

//here i populate the 2 tables

.......

//and then call the method to get the added rows

myDs dsNew = (myDs)dsOld.GetChanges(DataRowState.Added);



at this point on dsNew i have only the added rows of Table1 instead
Table2 is set to null.So, the method returns only the rows of 1 table
(Table1).

i have debugged the code and i see that the both tables of the dataset
dsOld are full of rows that have the rowstate = added.

somebody can explain me whats the problem ? it's seem like a bug



E.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.