Click or drag to resize

BusinessRule Class

Base abstract class for all business rules.
Inheritance Hierarchy

Namespace:  Aloe.SystemFrameworks.Domain.BusinessLogic
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public abstract class BusinessRule : IBusinessRule

The BusinessRule type exposes the following members.

Constructors
  NameDescription
Public methodBusinessRule
Initializes a new instance of the BusinessRule class.
Top
Properties
  NameDescription
Public propertyCode
Gets the unique rule code.
Public propertyDefaultExecutionPriority
Gets the default execution priority of the rule. It is used when priority is not specified when registering the rule for events.
Public propertyExecuteForDeletedObject
Gets a value indicating whether to execute the rule for deleted object. The default is false. Inheritors can override it.
Public propertyLocalizedName
Gets the localized name of the rule.
Public propertyName
Gets the rule name.
Top
Methods
  NameDescription
Public methodExecute
Executes the business rule on the specified object.
Public methodExecuteCore
Executes the actual business rule on the specified object.
Public methodOnRegistration
Called upon registration of the business rule in a repository.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Remarks

Business rules are the main carriers of business logic. The business rules execute when triggered by business events.

One business rule can be registered for multiple business events.

See Also