Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello

 

I am in a situation where I have a Parent-Child relationship between to table. I am using a typed dataset

 

I add a record to the parent table and then a a record to the child table, associated to the parent record a just added.

 

Then I do a rejectChanges on the parent table. I expect that both parent record and child record will be "eliminated" but instead, I have an exception saying

 

"Cannot make this change because constraints are enforced on relation

ParentToChild, and changing this value will strand child rows."

 

What's the problem???

 

 

Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...