Click or drag to resize

ScriptedConstraintTObject Constructor

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public ScriptedConstraint(
	string constraintCode,
	string name,
	Func<TObject, BusinessEvent, ValidationViolation> constraintScript,
	Func<IDataAttribute> getAttribute = null
)

Parameters

constraintCode
Type: SystemString
The rule code.
name
Type: SystemString
The name of the constraint.
constraintScript
Type: SystemFuncTObject, BusinessEvent, ValidationViolation
The constraint script.
getAttribute (Optional)
Type: SystemFuncIDataAttribute
The get attribute function.
See Also