AutoNumberConstraintTMaster, TDetail Class |
Namespace: Aloe.SystemFrameworks.Domain.Validation
public class AutoNumberConstraint<TMaster, TDetail> : ValidationConstraint<TDetail> where TMaster : EntityObject where TDetail : EditableDomainObject
The AutoNumberConstraintTMaster, TDetail type exposes the following members.
| Name | Description | |
|---|---|---|
| AutoNumberConstraintTMaster, TDetail |
Initializes a new instance of the AutoNumberConstraintTMaster, 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.) | |
| 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.) | |
| GetDetailCollection |
Gets the definition of the child collection in the master entity.
| |
| GetLineNumberAttribute |
Gets or sets the detail attribute.
| |
| GetMasterReference |
Gets or sets the reference to the master entity from the detail entity.
| |
| GetMessage |
Gets the message getter function.
The function is called to create and format a message in case of constraint violation.
(Inherited from ValidationConstraintTObject.) | |
| Increment |
Gets the number increment for subsequent line numbers.
| |
| 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.) | |
| Start |
Gets the first number to assign when starting in an empty master object.
|
| 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.) | |
| GetViolationOrDefault |
Validates the specified object. Returns null if the object is valid, ConstraintViolation if the validation has failed
| |
| IsValid |
Returns true if the object passes the constraint validation.
(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.) |