Datasnap.DBClient.TCustomClientDataSet.EnableConstraints
Delphi
procedure EnableConstraints;
C++
void __fastcall EnableConstraints(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Datasnap.DBClient.pas Datasnap.DBClient.hpp |
Datasnap.DBClient | TCustomClientDataSet |
Description
Reenables enforcement of constraints when records are posted.
Call EnableConstraints to turn on constraints previously disabled by a call to DisableConstraints.
Note: Calling EnableConstraints decrements a reference count. When this reference count is zero, constraints are enabled for the dataset. To prevent accidental disabling of constraints, always follow a call to DisableConstraints with a matching call to EnableConstraints.