Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 9 Jun 2006 11:54:01 +0400,    group: microsoft.public.dotnet.datatools        back       


Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet?   
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.
date: Fri, 9 Jun 2006 11:54:01 +0400   author:   Serg

Re: Why Adapter.Update(DataTable) causes AcceptChanges for whole DataSet?   
Forget it. I found it.
Relational Accept/RejectRule was settled to Cascade.


"Serg"  wrote in message 
news:%23bJygn5iGHA.3588@TK2MSFTNGP02.phx.gbl...
>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.
>
date: Fri, 9 Jun 2006 12:16:43 +0400   author:   Serg

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us