ComponentOne DataObjects for .NET
EnforceConstraints Property (C1DataSet)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : EnforceConstraints Property
Gets or sets a value indicating whether relation constraints must be satisfied while modifying the data set.
Syntax
'Declaration
 
Public Property EnforceConstraints As System.Boolean
public System.bool EnforceConstraints {get; set;}
Remarks
This run-time property is set to True by default, which means that C1DataObjects enforces relation parent-child constraints when the data set is modified. Relation constraints are imposed by simple relations with C1.Data.SchemaObjects.Relation.EnforceConstraints property set to True. They do not allow child records without parent.
See Also

Reference

C1DataSet Class
C1DataSet Members
Simple Relations
C1ExpressConnection Class