SaveRequestHandler<TRow,TSaveRequest,TSaveResponse> class
namespace: Serenity.Services assembly: Serenity.Net.Services
Generic base class for save request handlers
public class SaveRequestHandler<TRow, TSaveRequest, TSaveResponse> :
SaveRequestHandlerBase<TRow, TSaveRequest, TSaveResponse>,
ISaveHandler<TRow, TSaveRequest, TSaveResponse>, ISaveRequestProcessor
where TRow : class, IRow, IIdRow, new()
where TSaveRequest : SaveRequest<TRow>, new()
where TSaveResponse : SaveResponse, new()
| parameter |
description |
| TRow |
Entity type |
| TSaveRequest |
Save request type |
| TSaveResponse |
Save response type |
Public Members
Protected Members
| name |
description |
| behaviors |
Lazy list of behaviors that is activated for this request. |
| virtual AfterSave() |
Called after executing the insert/update statement |
| virtual BeforeSave() |
Called before executing the insert/update statement |
| virtual ExecuteSave() |
Executes the actual SQL save operation |
| virtual HandleDisplayOrder(…) |
Handles display order field calculation before and after save |
| virtual InvokeSaveAction(…) |
Invokes the passed save action method |
| virtual LoadOldEntity() |
Loads the old entity for an update operation |
| virtual OnReturn() |
Called just before the response is returned |
| virtual PerformAuditing() |
Performs auditing |
| virtual PrepareQuery() |
Prepares the query for selecting old record in an update operation. |
| virtual SetInternalFields() |
Sets values for internal fields |
| virtual ValidateRequest() |
Validates the request by checking insert / update permissions. |
See Also