Datasnap.DBClient.TCustomClientDataSet.EnableConstraints

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

procedure EnableConstraints;

C++

void __fastcall EnableConstraints();

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.

See Also