HighTechTalks DotNet Forums  

Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet?

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet? in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Serg
 
Posts: n/a

Default Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet? - 06-09-2006 , 02:54 AM






I am a newbie with dataset. May be I do somthing wrong with dataset?
I have a dataset with many tables (about 50 tables). All tables are linked
with foreign key references.
User inserts new rows in DataTables. When I do update to db I think I should
update tables in order they are linked. But when I call
Adapter.Update(MyMainDataTable) it causes in linked tables all rows with a
RowState Added become Unchanged.
I don`t understand why this happens. How can I update my linked tables?
May be I am not aware of some simple things?
Please help.
Thanks in adv.
Serg.



Reply With Quote
  #2  
Old   
Serg
 
Posts: n/a

Default Re: Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet? - 06-09-2006 , 03:16 AM






Forget it. I found it.
Relational Accept/RejectRule was settled to Cascade.


"Serg" <serg_nospam_ (AT) alef (DOT) ru> wrote

Quote:
I am a newbie with dataset. May be I do somthing wrong with dataset?
I have a dataset with many tables (about 50 tables). All tables are linked
with foreign key references.
User inserts new rows in DataTables. When I do update to db I think I
should update tables in order they are linked. But when I call
Adapter.Update(MyMainDataTable) it causes in linked tables all rows with a
RowState Added become Unchanged.
I don`t understand why this happens. How can I update my linked tables?
May be I am not aware of some simple things?
Please help.
Thanks in adv.
Serg.




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 - 2013, Jelsoft Enterprises Ltd.