F
Flomo Togba Kwele
I received the following error:
Concurrency violation: the DeleteCommand affected 0 of the expected 1
records.
on the Update method of the adapter below:
Me.ClientBindingSource.RemoveCurrent()
Me.Validate()
Me.ClientBindingSource.EndEdit()
Try
Me.clientAdapter.Update(DsClient.Client)
Catch ex As System.Data.SqlClient.SqlException
The ClientBindingSource has as its source a dataset and as its
datamember one of 3 tables contained in the dataset.
There is a PersonBindingSource whose datasource is the
ClientBindingSource and its datamember is the foreign relation between
the 2 tables.
Finally there is an AddressBindingSource whose datasource is
ClientBindingSource and its datamember is the foreign relation between
Person and Address.
I set both relations to cascade on delete in the Dataset designer. Why
is this happening?
Thanks, Flomo
Concurrency violation: the DeleteCommand affected 0 of the expected 1
records.
on the Update method of the adapter below:
Me.ClientBindingSource.RemoveCurrent()
Me.Validate()
Me.ClientBindingSource.EndEdit()
Try
Me.clientAdapter.Update(DsClient.Client)
Catch ex As System.Data.SqlClient.SqlException
The ClientBindingSource has as its source a dataset and as its
datamember one of 3 tables contained in the dataset.
There is a PersonBindingSource whose datasource is the
ClientBindingSource and its datamember is the foreign relation between
the 2 tables.
Finally there is an AddressBindingSource whose datasource is
ClientBindingSource and its datamember is the foreign relation between
Person and Address.
I set both relations to cascade on delete in the Dataset designer. Why
is this happening?
Thanks, Flomo