Click or drag to resize

EditableRepositoryRegisterRule Method

Registers a constraint for the specified validation events.

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public void RegisterRule(
	IBusinessRule businessRule,
	IBusinessEventMask eventMask,
	Nullable<RuleExecutionPriority> priority = null
)

Parameters

businessRule
Type: Aloe.SystemFrameworks.Domain.BusinessLogicIBusinessRule
The business rule to register.
eventMask
Type: Aloe.SystemFrameworks.Domain.BusinessLogicIBusinessEventMask
The event mask for which to register the constraint.
priority (Optional)
Type: SystemNullableRuleExecutionPriority
The execution priority of the rule. If not specified, the default of the rule is used.
See Also