Hi,
"Mr Newbie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hmm......, Tricky eh!
>
> Well, it sounds like there is no hard and fast way to deal with this, it's
> a case of grow your own solution depending on the type of implementation
> you need.
Sort off, yes.
The link is mostly about the fact that some databases allow you to delete a
parent row in which case it deletes the child rows itself. And then it
depends on whether you take advantage of that or not. You don't have to you
can still first delete the child rows and then the parent row.
The update sequence for the latter is explained in "Managing an @@IDENTITY
Crisis" and requires AcceptRejectRule to be None.
Greetings
>
> Its a Delete vs Create dialema when you are dealing with both parent AND
> child variations in the local Dataset.
>
> Thanks for the link.
>
> --
> Best Regards
>
> The Inimitable Mr Newbie º¿º
>
>
> "Bart Mermuys" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi Mr Newbie,
>>
>> "Mr Newbie" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> DataSet Parent/Child + Relation.
>>>
>>> When you update the parent table, then after each row is updated in the
>>> db,
>>> the adapter will call AcceptChanges on that row, marking that row as
>>> unchanged. When AcceptRejectRule is set the Cascade, then AcceptChanges
>>> is
>>> called on all related child rows marking them as unchanged too.
>>>
>>> In what scanario would this cascade be useful ?
>>
>> I found a thread on google describing one situation where it can be
>> required:
>>
>> http://groups.google.be/group/micros...11a31b0eeb225e
>>
>> HTH,
>> Greetings
>>
>>>
>>>
>>
>>
>
>