G
Guest
Hello all, I've made a dataset by using the xsd tool in C#. In the xsd
schema, there are a few tables, each has its own primary key. And, I've made
relation between them.
After all things are done, I can use the dataset class generated to retrieve
data. The problem is that, when I try to delete a parent row (using
RemoveTABLERow method), both the parent and child tables rowcount decrease as
expected. But only the changes done in child table can be updated to the DB.
The parent row is still there.
I've tried the sequence suggested by MSDN:
1. Child table: delete records.
2. Parent table: insert, update, and delete records.
3. Child table: insert and update records.
Sometimes nothing changed in DB. Sometimes only child table show changes.
Could anyone give me any hint what I should do to fix the situation?
schema, there are a few tables, each has its own primary key. And, I've made
relation between them.
After all things are done, I can use the dataset class generated to retrieve
data. The problem is that, when I try to delete a parent row (using
RemoveTABLERow method), both the parent and child tables rowcount decrease as
expected. But only the changes done in child table can be updated to the DB.
The parent row is still there.
I've tried the sequence suggested by MSDN:
1. Child table: delete records.
2. Parent table: insert, update, and delete records.
3. Child table: insert and update records.
Sometimes nothing changed in DB. Sometimes only child table show changes.
Could anyone give me any hint what I should do to fix the situation?