MasterConstraintTMaster, TDetail Class |
Namespace: Aloe.SystemFrameworks.Domain.Validation
public class MasterConstraint<TMaster, TDetail> : ValidationConstraint<TMaster> where TMaster : EntityObject where TDetail : EditableDomainObject
The MasterConstraintTMaster, TDetail type exposes the following members.
Name | Description | |
---|---|---|
![]() | MasterConstraintTMaster, TDetail |
Initializes a new instance of the MasterConstraintTMaster, TDetail class.
|
Name | Description | |
---|---|---|
![]() | Attribute |
The data attribute for which the constraint is defined or null if the constraint is not for specific attribute.
(Inherited from ConstraintTObject.) |
![]() | Code |
Gets the unique rule code.
(Inherited from BusinessRule.) |
![]() | Data |
Gets the master detail constraint data.
|
![]() | DefaultExecutionPriority |
Gets the default execution priority of the rule.
It is used when priority is not specified when registering the rule for events.
(Inherited from ConstraintTObject.) |
![]() | ExecuteForDeletedObject |
Gets a value indicating whether to execute the rule for deleted object. The default is false.
Inheritors can override it.
(Inherited from BusinessRule.) |
![]() | GetAttribute |
Gets the function that returns the attribute of the constraint.
The attribute is specified for constraints, which constrain a specific attribute.
(Inherited from ConstraintTObject.) |
![]() | GetMessage |
Gets the message getter function.
The function is called to create and format a message in case of constraint violation.
(Inherited from ValidationConstraintTObject.) |
![]() | IsActivated |
Gets a value indicating whether this constraint has already been activated.
(Inherited from ConstraintTObject.) |
![]() | LocalizedName |
Gets the localized name of the constraint.
(Overrides BusinessRuleLocalizedName.) |
![]() | Name |
Gets the constraint name.
(Overrides BusinessRuleName.) |
Name | Description | |
---|---|---|
![]() | Activate |
Activates the constraint.
(Inherited from ConstraintTObject.) |
![]() | Execute |
Executes the business rule on the specified object.
(Inherited from BusinessRule.) |
![]() | ExecuteCore |
Executes the business rule on the specified object.
(Inherited from ValidationConstraintTObject.) |
![]() | IsValid |
Validates the object and returns true if the object is valid according to the constraint.
(Overrides ValidationConstraintTObjectIsValid(TObject, ValidationEvent).) |
![]() | OnRegistration |
Called upon registration of the business rule in a repository.
(Inherited from BusinessRule.) |
![]() | ToString |
Returns a String that represents this instance.
(Inherited from BusinessRule.) |
The master-detail relationship has the following properties: