[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Record-level constraint definition.
Source position: db.pas line 1291
type TCheckConstraint = class(TCollectionItem) |
||
public |
||
procedure Assign(); override; |
|
Assign one constraint to another. |
published |
||
property CustomConstraint: string; [rw] |
|
User-defined constraint. |
property ErrorMessage: string; [rw] |
|
Message to display when the constraint is violated. |
property FromDictionary: Boolean; [rw] |
|
True if the constraint is imported from a datadictionary. |
property ImportedConstraint: string; [rw] |
|
Constraint imported from the database engine. |
end; |
|
Record-level constraint definition. |
|
| | ||
| | ||
| | ||
TCheckConstraint can be used to store the definition of a record-level constraint. It does not enforce the constraint, it only stores the constraint's definition. The constraint can come from several sources: an imported constraints from the database, usually stored in the TCheckConstraint.ImportedConstraint property , or a constraint enforced by the user on a particular dataset instance stored in TCheckConstraint.CustomConstraint
|
Set of record-level constraints. |
|
|
Constraint imported from the database engine. |
|
|
User-defined constraint. |