Datasnap.DBClient.TCustomClientDataSet.LogChanges

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LogChanges: Boolean read GetLogChanges write SetLogChanges;

C++

__property bool LogChanges = {read=GetLogChanges, write=SetLogChanges, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

Indicates whether to maintain a change log separate from the data.

Use LogChanges to control whether changes made to the data in a client dataset are recorded. When LogChanges is True (the default), all changes are recorded in the Delta property. They can later be applied to a database or source dataset, backed out, or merged into the Data property. When LogChanges is False, data changes are made directly to the Data property and cannot be applied to a database or source dataset through a provider.

Note: Never set LogChanges to False if the client dataset uses an internal provider, unless the data is read-only. Setting LogChanges to False results in a client dataset that cannot apply updates.

Warning: Set LogChanges to False if you do not plan to update the database with the changes made in the client dataset. For large datasets, a value of True for LogChanges may severely impact the performance of the application.

See Also