DeleteRequestHandler<TRow,TDeleteRequest,TDeleteResponse> class
namespace: Serenity.Services assembly: Serenity.Net.Services
Generic base class for delete request handlers
public class DeleteRequestHandler<TRow, TDeleteRequest, TDeleteResponse> :
DeleteRequestHandlerBase<TRow, TDeleteRequest, TDeleteResponse>,
IDeleteHandler<TRow, TDeleteRequest, TDeleteResponse>, IDeleteRequestProcessor
where TRow : class, IRow, IIdRow, new()
where TDeleteRequest : DeleteRequest
where TDeleteResponse : DeleteResponse, new()
| parameter |
description |
| TRow |
Entity type |
| TDeleteRequest |
Delete request type |
| TDeleteResponse |
Delete response type |
Public Members
| name |
description |
| DeleteRequestHandler(…) |
Initializes a new instance of the class. |
| Delete(…) |
|
| Process(…) |
Processes the delete request. This is the entry point for the handler. |
Protected Members
| name |
description |
| behaviors |
Lazy list of behaviors that is activated for this request. |
| virtual DoAudit() |
Performs auditing |
| virtual ExecuteDelete() |
Executes the actual SQL delete operation |
| virtual InvokeDeleteAction(…) |
Invokes the passed delete action method |
| virtual LoadEntity() |
Loads the entity that is going to be deleted |
| virtual OnAfterDelete() |
Method that is executed after the actual SQL delete operation |
| virtual OnBeforeDelete() |
Method that is executed before the actual SQL delete operation. |
| virtual OnReturn() |
The method that is called just before the response is returned. |
| virtual PrepareQuery(…) |
Prepares the query used to select the existing record |
| virtual ValidateRequest() |
Validates the parameters of the delete request. |
See Also