Datasnap.DBClient.TCustomClientDataSet.LogChanges
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Datasnap.DBClient.pas Datasnap.DBClient.hpp
| |
Unit: Datasnap.DBClient | |
Parent: TCustomClientDataSet |
Delphi
property LogChanges: Boolean read GetLogChanges write SetLogChanges;
C++
__property bool LogChanges = {read=GetLogChanges, write=SetLogChanges, nodefault};
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.