Click or drag to resize

DetailConstraintTMaster, TDetail Constructor

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public DetailConstraint(
	string ruleCode,
	Func<DataAttributeBase<TMaster>> getMasterAttribute,
	Func<ChildCollectionDefinition<TDetail>> getMasterChildCollection,
	Func<DataAttributeBase<TDetail>> getDetailAttribute,
	Func<ObjectReference<TMaster>> getDetailMasterReference
)

Parameters

ruleCode
Type: SystemString
The rule code.
getMasterAttribute
Type: SystemFuncDataAttributeBaseTMaster
The master attribute.
getMasterChildCollection
Type: SystemFuncChildCollectionDefinitionTDetail
The master child collection.
getDetailAttribute
Type: SystemFuncDataAttributeBaseTDetail
The detail attribute.
getDetailMasterReference
Type: SystemFuncObjectReferenceTMaster
Func, which gets the master reference of the detail object.
Remarks
The attributes are provided with Func, because attributes are usually initialized statically and the order of initialization between the attributes and the constraint is unknown.
See Also