RequiredAttributeConstraintTObject Class |
Namespace: Aloe.SystemFrameworks.Domain.Validation
public class RequiredAttributeConstraint<TObject> : ValidationConstraint<TObject> where TObject : EditableDomainObject
The RequiredAttributeConstraintTObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | RequiredAttributeConstraintTObject |
Initializes a new instance of the RequiredAttributeConstraintTObject 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.) |
![]() | Condition |
Gets the condition when the attribute is required. When the condition is not met, the attribute is not required.
|
![]() | 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 |
Returns true if the domain object is valid according to this 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.) |