Datasnap.Provider.TDataSetProvider.Constraints
Delphi
property Constraints: Boolean read FConstraints write FConstraints default True;
C++
__property bool Constraints = {read=FConstraints, write=FConstraints, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Datasnap.Provider.pas Datasnap.Provider.hpp |
Datasnap.Provider | TDataSetProvider |
Description
Controls whether database constraints are passed to the client so that it can check them locally.
Set Constraints to specify whether data constraints defined for the provider's associated dataset are sent along with the metadata for the dataset. Sending constraints allows client datasets to check for constraint violations locally, so that updates are less likely to fail when sent back to the database server.
When Constraints is true, constraints are sent. To prevent the provider from sending constraint information, set Constraints to false.
Note: Before constraints can be sent to client applications, they must be imported to the data dictionary on the application server. Use SQL explorer to import constraints to the data dictionary.