?
=?iso-8859-1?Q?Jos=E9_Tavares?=
I've got a pieace of code that calls
IDbDataAdaptar::Update several times inside a transaction.
Pseudo Code:
TRY
Begin Transaction
update(a table) //AcceptChanges was run
update(some other table) // AcceptChanges was run
update(another table) // Fails
Commit
CATCH
RollBack
When the last call to update fails, the update method made
AcceptChanges to the first two datatables. So the physical
trasaction was rolled back but the logical transaction was
commited for two of the tables , inconsystency.
There's any method to disable the (auto)AcceptChanges from
the DataSet/Datatable.
Thanks in advance,
José Tavares
IDbDataAdaptar::Update several times inside a transaction.
Pseudo Code:
TRY
Begin Transaction
update(a table) //AcceptChanges was run
update(some other table) // AcceptChanges was run
update(another table) // Fails
Commit
CATCH
RollBack
When the last call to update fails, the update method made
AcceptChanges to the first two datatables. So the physical
trasaction was rolled back but the logical transaction was
commited for two of the tables , inconsystency.
There's any method to disable the (auto)AcceptChanges from
the DataSet/Datatable.
Thanks in advance,
José Tavares