DetailConstraintTMaster, TDetail Constructor |
Namespace:
Aloe.SystemFrameworks.Domain.Validation
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic DetailConstraint(
string ruleCode,
Func<DataAttributeBase<TMaster>> getMasterAttribute,
Func<ChildCollectionDefinition<TDetail>> getMasterChildCollection,
Func<DataAttributeBase<TDetail>> getDetailAttribute,
Func<ObjectReference<TMaster>> getDetailMasterReference
)
Public Sub New (
ruleCode As String,
getMasterAttribute As Func(Of DataAttributeBase(Of TMaster)),
getMasterChildCollection As Func(Of ChildCollectionDefinition(Of TDetail)),
getDetailAttribute As Func(Of DataAttributeBase(Of TDetail)),
getDetailMasterReference As Func(Of ObjectReference(Of TMaster))
)
public:
DetailConstraint(
String^ ruleCode,
Func<DataAttributeBase<TMaster>^>^ getMasterAttribute,
Func<ChildCollectionDefinition<TDetail>^>^ getMasterChildCollection,
Func<DataAttributeBase<TDetail>^>^ getDetailAttribute,
Func<ObjectReference<TMaster>^>^ getDetailMasterReference
)
new :
ruleCode : string *
getMasterAttribute : Func<DataAttributeBase<'TMaster>> *
getMasterChildCollection : Func<ChildCollectionDefinition<'TDetail>> *
getDetailAttribute : Func<DataAttributeBase<'TDetail>> *
getDetailMasterReference : Func<ObjectReference<'TMaster>> -> DetailConstraint
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