Click or drag to resize

AutoNumberConstraintTMaster, TDetail Class

Validates the uniqueness of the line number of a detail object within a master object.
Inheritance Hierarchy
SystemObject
  Aloe.SystemFrameworks.Domain.BusinessLogicBusinessRule
    Aloe.SystemFrameworks.Domain.ValidationConstraintTDetail
      Aloe.SystemFrameworks.Domain.ValidationValidationConstraintTDetail
        Aloe.SystemFrameworks.Domain.ValidationAutoNumberConstraintTMaster, TDetail

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public class AutoNumberConstraint<TMaster, TDetail> : ValidationConstraint<TDetail>
where TMaster : EntityObject
where TDetail : EditableDomainObject

Type Parameters

TMaster
The type of the master object.
TDetail
The type of the detail object.

The AutoNumberConstraintTMaster, TDetail type exposes the following members.

Constructors
  NameDescription
Public methodAutoNumberConstraintTMaster, TDetail
Initializes a new instance of the AutoNumberConstraintTMaster, TDetail class.
Top
Properties
  NameDescription
Public propertyAttribute
The data attribute for which the constraint is defined or null if the constraint is not for specific attribute.
(Inherited from ConstraintTObject.)
Public propertyCode
Gets the unique rule code.
(Inherited from BusinessRule.)
Public propertyDefaultExecutionPriority
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.)
Public propertyExecuteForDeletedObject
Gets a value indicating whether to execute the rule for deleted object. The default is false. Inheritors can override it.
(Inherited from BusinessRule.)
Public propertyGetAttribute
Gets the function that returns the attribute of the constraint. The attribute is specified for constraints, which constrain a specific attribute.
(Inherited from ConstraintTObject.)
Public propertyGetDetailCollection
Gets the definition of the child collection in the master entity.
Public propertyGetLineNumberAttribute
Gets or sets the detail attribute.
Public propertyGetMasterReference
Gets or sets the reference to the master entity from the detail entity.
Public propertyGetMessage
Gets the message getter function. The function is called to create and format a message in case of constraint violation.
(Inherited from ValidationConstraintTObject.)
Public propertyIncrement
Gets the number increment for subsequent line numbers.
Public propertyIsActivated
Gets a value indicating whether this constraint has already been activated.
(Inherited from ConstraintTObject.)
Public propertyLocalizedName
Gets the localized name of the constraint.
(Overrides BusinessRuleLocalizedName.)
Public propertyName
Gets the constraint name.
(Overrides BusinessRuleName.)
Public propertyStart
Gets the first number to assign when starting in an empty master object.
Top
Methods
  NameDescription
Public methodActivate
Activates the constraint.
(Inherited from ConstraintTObject.)
Public methodExecute
Executes the business rule on the specified object.
(Inherited from BusinessRule.)
Public methodExecuteCore
Executes the business rule on the specified object.
(Inherited from ValidationConstraintTObject.)
Public methodGetViolationOrDefault
Validates the specified object. Returns null if the object is valid, ConstraintViolation if the validation has failed
Public methodIsValid
Returns true if the object passes the constraint validation.
(Overrides ValidationConstraintTObjectIsValid(TObject, ValidationEvent).)
Public methodOnRegistration
Called upon registration of the business rule in a repository.
(Inherited from BusinessRule.)
Public methodToString
Returns a String that represents this instance.
(Inherited from BusinessRule.)
Top
See Also