Click or drag to resize

RequiredAttributeConstraintTObject Constructor

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public RequiredAttributeConstraint(
	string constraintCode,
	Func<IDataAttribute> attribute,
	Func<TObject, bool> condition
)

Parameters

constraintCode
Type: SystemString
The constraint code.
attribute
Type: SystemFuncIDataAttribute
The attribute.
condition
Type: SystemFuncTObject, Boolean
The condition when the attribute is required. When the condition is not met, the attribute is not required.
See Also