Table of Contents

Saving

This event is triggered on the server before saving. The rule is cancelable in order to be able to prevent entities from being saved. You can use this event to update the properties of entities before they are saved.

Note

The entity view validation rules and entity validation rules will be triggered after this rule.

Arguments

You can find the details of the interface on this page

Name Type Description
CreatedItems IReadOnlyList<TEntityView> The created items.
ModifiedItems IReadOnlyList<TEntityView> The modified items.
CreatedAndModifiedItems IReadOnlyList<TEntityView> The created and modified items regrouped in the same collection.
DeletedItems IReadOnlyList<TEntityView> The deleted items.
Context IBusinessRuleContext Represents a key/value pair dictionary that is used to store custom data. You can find the details of the interface on this page
Cancel boolean If set to true, the save will not be executed.