Click or drag to resize

ConstraintTObject Class

Base abstract class for all validation business rules (Constraints).
Inheritance Hierarchy
SystemObject
  Aloe.SystemFrameworks.Domain.BusinessLogicBusinessRule
    Aloe.SystemFrameworks.Domain.ValidationConstraintTObject
      Aloe.EnterpriseOne.Model.Core.SpecialTypesDataAccessFilterConstraintTObject
      Aloe.SystemFrameworks.Domain.ValidationDetailCheckConstraintTMaster, TDetail
      Aloe.SystemFrameworks.Domain.ValidationNoExceptionConstraintTObject
      Aloe.SystemFrameworks.Domain.ValidationScriptedConstraintTObject
      Aloe.SystemFrameworks.Domain.ValidationValidationConstraintTObject

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public abstract class Constraint<TObject> : BusinessRule, 
	IConstraint, IBusinessRule

Type Parameters

TObject
The type of the object.

The ConstraintTObject type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAttribute
The data attribute for which the constraint is defined or null if the constraint is not for specific attribute.
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.
(Overrides BusinessRuleDefaultExecutionPriority.)
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.
Public propertyIsActivated
Gets a value indicating whether this constraint has already been activated.
Public propertyLocalizedName
Gets the localized name of the rule.
(Inherited from BusinessRule.)
Public propertyName
Gets the rule name.
(Inherited from BusinessRule.)
Top
Methods
  NameDescription
Public methodActivate
Activates the constraint.
Public methodExecute
Executes the business rule on the specified object.
(Inherited from BusinessRule.)
Public methodExecuteCore
Executes the actual business rule on the specified object.
(Inherited from BusinessRule.)
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