IListBehavior interface
namespace: Serenity.Services assembly: Serenity.Net.Services
A list behavior that can be used as a mixin within a ListRequestHandler lifecycle
public interface IListBehavior
Members
| name | description |
|---|---|
| OnAfterExecuteQuery(…) | Called after query is sent to database |
| OnApplyFilters(…) | Called when filters are applied to query |
| OnBeforeExecuteQuery(…) | Called just before query is sent to database |
| OnPrepareQuery(…) | Called when query to is built |
| OnReturn(…) | Called before handler is returning the result |
| OnValidateRequest(…) | Called when list request is validated |
Remarks
A list behavior instance is always cached and reused across requests, so make sure you don't store anything in private variables, and its operation is thread-safe. If you need to pass some state between events, use handler's StateBag.
See Also
- Source: IListBehavior.cs