سؤال

I have dataset with two tables: Computers and Hardware. Hardware table has foreign key relation constraint to Computers ID. The problem is I cannot update Hardware table in the database with table adapter. After calling computersTableAdapter.Update(DataSet.Computers) the row states of Hardware changes from Added to Unchanged

This even happens when i set computersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;

هل كانت مفيدة؟

المحلول

The problem was that i did not set Nested property True on foreign key relation.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top