I have 2 datatable In dataset object
TransactionReasons and TransactionSubReasons.
TransactionSubReasons datatable have foreignkey IDTransactionReason from TransactionReasons.
When I add new row to TransactionReasons(for example IDTransactionReason=1) and then adding new row to TransactionSubReasons. New added row's IDTransactionReason field equals to new added row's ID(in this example 1).Until this is every thing is good.
But when I want to update my database the problem is occured.
For updating I used tableAdapterManager.UpdateAll(MYDATSET);
How can i solve this problem?
Thank for your attention!!!