Cascading Deletes Do Not Persist to the Database in my Typed Dataset?

Deleting rows in a dataset will only mark them for deletion in your dataset; you still have to use a table adapter for every table in the DB you want to delete data from. You can think of the dataset as your version of the database in memory. Those changes need to be committed to the database in the correct order to prevent FK errors.In your case you need to run the update statement for the parent table (colors) AFTER all the deletes for the children (boxes) have been committed like so.

Deleting rows in a dataset will only mark them for deletion in your dataset; you still have to use a table adapter for every table in the DB you want to delete data from. You can think of the dataset as your version of the database in memory. Those changes need to be committed to the database in the correct order to prevent FK errors.In your case you need to run the update statement for the parent table (colors) AFTER all the deletes for the children (boxes) have been committed like so... this.

BoxesTableAdapter. Update(this.pOCDataSet. Boxes); this.

ColorsTableAdapter. Update(this.pOCDataSet. Colors); Hope this helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions