Click or drag to resize

DetailCheckConstraintTMaster, TDetail Class

Represents a constraint, which checks all detail objects for validity.
Inheritance Hierarchy
SystemObject
  Aloe.SystemFrameworks.Domain.BusinessLogicBusinessRule
    Aloe.SystemFrameworks.Domain.ValidationConstraintTMaster
      Aloe.SystemFrameworks.Domain.ValidationDetailCheckConstraintTMaster, TDetail

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

Type Parameters

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

The DetailCheckConstraintTMaster, TDetail type exposes the following members.

Constructors
  NameDescription
Public methodDetailCheckConstraintTMaster, TDetail(String, String, FuncTMaster, IEnumerableTDetail, FuncTDetail, Boolean, FuncTDetail, String, ActionTMaster, FuncIDataAttribute)
Initializes a new instance of the DetailCheckConstraintTMaster, TDetail class.
Public methodDetailCheckConstraintTMaster, TDetail(String, String, FuncTMaster, IEnumerableTDetail, FuncTDetail, BusinessEvent, Boolean, FuncTDetail, String, ActionTMaster, FuncIDataAttribute)
Initializes a new instance of the DetailCheckConstraintTMaster, 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 propertyDetailCheck
Gets the detail check function. The detail check function is called to check for validity each detail object and should return if the data is valid.
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 propertyGetDetails
Gets the get details function, which returns the detail objects for the specified master object.
Public propertyGetMessage
Gets the message getter function. The function is called to create and format a message in case of constraint violation.
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 propertyPreOpt
Gets the pre opt function, which is used for pre-optimization. This is code, which is called before the line checks are performed.
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.
(Overrides BusinessRuleExecuteCore(DomainObject, BusinessEvent).)
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