J
James
Hi and thanks in advance,
I am getting a violation of PRIMARY KEY constraint exception when
calling update on a data adapter, after using LoadDataRow(). This is
what I am doing:
1) Fill dataset and AcceptChanges
2) Build object array and populate with correct types
3) Call LoadDataRow on the datatable passing in the array
Now at this point the row is getting created in the DataTable when there
is an existing row with the same primary key. This is not what the
documentation prescribes - it ostensibly should not add duplicates.
4) If the dataset HasChanges() call Update on a dataadapter passing in
the dataset.
Calling update throws the exception.
Many thanks for any help in this extremely trying time
I am getting a violation of PRIMARY KEY constraint exception when
calling update on a data adapter, after using LoadDataRow(). This is
what I am doing:
1) Fill dataset and AcceptChanges
2) Build object array and populate with correct types
3) Call LoadDataRow on the datatable passing in the array
Now at this point the row is getting created in the DataTable when there
is an existing row with the same primary key. This is not what the
documentation prescribes - it ostensibly should not add duplicates.
4) If the dataset HasChanges() call Update on a dataadapter passing in
the dataset.
Calling update throws the exception.
Many thanks for any help in this extremely trying time