I have a parent child relationship that I have having a hard time
either inserting and updating or deleting. I have a parent DataTable
(Contact) and a child DataTable (ContactPhone). I am using a
DataRelation between them. I am also using the MS Data Access
Application Blocks. I have read numerous forums on how to delete a
child record with changing the AcceptRejectRule to cascade. From what
I can understand this is done at the DataAdapter level. I also
understand that inserts and updates need to happen in a different
order than deletes with a relation.

What I am wondering is if and how I can implement a relation like this
using the MS DAAB. Has anyone been able to do this and if so how? I
thought about extending the SqlHelper.cs, but don't know if there is
success in doing that. Thought I would try it out here before
pounding my head even more with this issue.

Any help would be greatly appreciated and thank you in advance.

Thanks.

Re: DAAB: hierarchical updates and deletes by taryn

taryn
Thu Feb 05 15:21:39 CST 2004

Nevermind. AcceptChanges is a wonderful thing.


taryn.knous@champsoftware.com (tk547) wrote in message news:<28e9854f.0402041453.51e45473@posting.google.com>...
> I have a parent child relationship that I have having a hard time
> either inserting and updating or deleting. I have a parent DataTable
> (Contact) and a child DataTable (ContactPhone). I am using a
> DataRelation between them. I am also using the MS Data Access
> Application Blocks. I have read numerous forums on how to delete a
> child record with changing the AcceptRejectRule to cascade. From what
> I can understand this is done at the DataAdapter level. I also
> understand that inserts and updates need to happen in a different
> order than deletes with a relation.
>
> What I am wondering is if and how I can implement a relation like this
> using the MS DAAB. Has anyone been able to do this and if so how? I
> thought about extending the SqlHelper.cs, but don't know if there is
> success in doing that. Thought I would try it out here before
> pounding my head even more with this issue.
>
> Any help would be greatly appreciated and thank you in advance.
>
> Thanks.