Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have TypedDataSet with foreignKey relationship between two table tableA is parent and TableB is the Child table.

first I fill the DataSet from the DataAdapter

 

TableABDataSet ds = new TableABDataSet();

tableAdataAdapter.parameters["ID"].value = 1;

tableAdataAdapter.fill(ds ,"TableA");

tableBdataAdapter.parameters["ParentID"].value = 1;

tableBdataAdapter.fill(ds ,"TableB");

 

 

well I get the dataset as I want

 

now when I delete one of the child table row as

ds.TableB.Rows[0].delete();

tableAdataAdapter.Update(ds ,"TableA");

tableBdataAdapter.Update(ds ,"TableB");

 

I get following error

"Concurrancy voilation"

it occurs only when I delete the row not when i update or add rows;

 

can any one help

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...