MasterConstraintTMaster, TDetail Constructor |
Namespace:
Aloe.SystemFrameworks.Domain.Validation
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic MasterConstraint(
string ruleCode,
Func<DataAttributeBase<TMaster>> getMasterAttribute,
Func<ChildCollectionDefinition<TDetail>> getMasterChildCollection,
Func<DataAttributeBase<TDetail>> getDetailAttribute,
Func<ObjectReference<TMaster>> getDetailParentReference
)
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)),
getDetailParentReference As Func(Of ObjectReference(Of TMaster))
)
public:
MasterConstraint(
String^ ruleCode,
Func<DataAttributeBase<TMaster>^>^ getMasterAttribute,
Func<ChildCollectionDefinition<TDetail>^>^ getMasterChildCollection,
Func<DataAttributeBase<TDetail>^>^ getDetailAttribute,
Func<ObjectReference<TMaster>^>^ getDetailParentReference
)
new :
ruleCode : string *
getMasterAttribute : Func<DataAttributeBase<'TMaster>> *
getMasterChildCollection : Func<ChildCollectionDefinition<'TDetail>> *
getDetailAttribute : Func<DataAttributeBase<'TDetail>> *
getDetailParentReference : Func<ObjectReference<'TMaster>> -> MasterConstraint
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. - getDetailParentReference
- Type: SystemFuncObjectReferenceTMaster
The detail parent reference.
See Also