Retrieved
This event is triggered on the server after the data fetching query is called. This rule can, for example, be used to feed a property defined on the entity view.
Warning
In the current version, the event is not triggered for the additional data fetched through navigation properties.
Arguments
You can find the details of the interface on this page
| Name | Type | Description |
|---|---|---|
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 |
Skip |
int? |
The number of elements to skip. |
Top |
int? |
The number of elements to return. |
Key |
object? |
The key if it is the retrieving of a particular record. |
Parameters |
IReadOnlyEntityViewParameters<TEntityView> |
The query strings parameter collection. You can find the details of the interface on this page |
Items |
IReadOnlyList<TEntityView> |
The items returned by the query. |
Note
The context is shared between the Retrieving and Retrieved events. An added value in the context during the Retrieving event is available at the Retrieved event level.
Note
The Retrieved event rule is not executed for count queries.
Using the Key property
The Key property is of type object and is not directly usable. To obtain the values of the properties composing the key, you must use the GetKeyValues method of the repository. A code example is available here.