G
Guest
Is there a way that I can prevent the SqlDataAdapter associated the with
TableAdapter from issuing an AcceptChages? The only way I can see how to do
this is to create a partial class for the TableAdapter. The associated
SqlDataAdapter.AcceptChangesDuringUpdate defaults is defaulted to true.
My issue is that I am calling a web method with the dataset containing the
newly inserted rows. I then use the TableAdapter to update the database and
then return the dataset back to the caller of the WebService. The caller
then merges the dataset back in (updating the identity columns correctly).
The problem is that I end up getting a duplicate row for each newly inserted
row. One row is valid while the original inserted row still exists with the
idenity column set to some negative value.
Thanks in advance for your help!
Terry
TableAdapter from issuing an AcceptChages? The only way I can see how to do
this is to create a partial class for the TableAdapter. The associated
SqlDataAdapter.AcceptChangesDuringUpdate defaults is defaulted to true.
My issue is that I am calling a web method with the dataset containing the
newly inserted rows. I then use the TableAdapter to update the database and
then return the dataset back to the caller of the WebService. The caller
then merges the dataset back in (updating the identity columns correctly).
The problem is that I end up getting a duplicate row for each newly inserted
row. One row is valid while the original inserted row still exists with the
idenity column set to some negative value.
Thanks in advance for your help!
Terry