Click or drag to resize

DetailCheckConstraintTMaster, TDetail Constructor (String, String, FuncTMaster, IEnumerableTDetail, FuncTDetail, Boolean, FuncTDetail, String, ActionTMaster, FuncIDataAttribute)

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public DetailCheckConstraint(
	string constraintCode,
	string name,
	Func<TMaster, IEnumerable<TDetail>> getDetails,
	Func<TDetail, bool> detailCheck,
	Func<TDetail, string> getMessage,
	Action<TMaster> preOpt = null,
	Func<IDataAttribute> getAttribute = null
)

Parameters

constraintCode
Type: SystemString
The constraint code.
name
Type: SystemString
The name.
getDetails
Type: SystemFuncTMaster, IEnumerableTDetail
The get details function, see GetDetails.
detailCheck
Type: SystemFuncTDetail, Boolean
The detail check function. Should return if the data is valid, see DetailCheck.
getMessage
Type: SystemFuncTDetail, String
The get message function, see GetMessage.
preOpt (Optional)
Type: SystemActionTMaster
The pre opt action, see PreOpt.
getAttribute (Optional)
Type: SystemFuncIDataAttribute
The get attribute function, see GetAttribute.
See Also