FireDAC.Comp.DataSet.TFDDataSet.Reconcile
Delphi
function Reconcile(ACommitApplied: Boolean = False): Boolean;
C++
bool __fastcall Reconcile(bool ACommitApplied = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Description
Clears the successfully updated records from the dataset's cache of changes.
The ACommitApplied
parameter determines whether reconciled changes are commited (True
) or not (False
).
The results of applying updates are recorded in the internal data storage, including error information for each record that could not be applied. Reconcile generates an OnReconcileError event for every record that was not successfully applied. Finally, Reconcile adjusts the Delta property so that it includes only those records that were not successfully applied. Any changes made in the OnReconcileError event are reflected in the new value of Delta.
Reconcile returns a value that indicates whether reconciling is successful. If True, Reconcile succeeded without error. If False, one or more errors could not be reconciled.
Alternatively, an application can review erroneous records using the FilterChanges and RowError properties. See Reviewing Errors for more details.