Zitat:
After applying updates, the changed records still remain in the changes log. To remove them from the changes log and mark them as unmodified, call the CommitUpdates method of each DataSet.
Also in etwa wie folgt:
Delphi-Quellcode:
FDConnection1.StartTransaction;
iErrors := FDSchemaAdapter1.ApplyUpdates;
if iErrors = 0 then
begin
for x := 0 to FDSchemeAdapter1.Count-1 do
FDSchemaAdapter1.DataSets[x].CommitUpdates;
FDConnection1.Commit;
end
else
FDConnection1.Rollback;
Daniel R. Wolf
mit Grüßen aus Hamburg