UndeleteRequestHandler<TRow,TUndeleteRequest,TUndeleteResponse> class
namespace: Serenity.Services assembly: Serenity.Net.Services
Generic base class for undelete request handlers
public class UndeleteRequestHandler<TRow, TUndeleteRequest, TUndeleteResponse> :
UndeleteRequestHandlerBase<TRow, TUndeleteRequest, TUndeleteResponse>,
IUndeleteHandler<TRow, TUndeleteRequest, TUndeleteResponse>, IUndeleteRequestProcessor
where TRow : class, IRow, IIdRow, new()
where TUndeleteRequest : UndeleteRequest
where TUndeleteResponse : UndeleteResponse, new()
| parameter |
description |
| TRow |
Entity type |
| TUndeleteRequest |
Undelete request type |
| TUndeleteResponse |
Undelete response type |
Public Members
Protected Members
| name |
description |
| behaviors |
Lazy list of behaviors that is activated for this request. |
| virtual DoAudit() |
Performs auditing |
| virtual ExecuteUndelete() |
Executes the actual SQL undelete/update operation |
| virtual InvokeUndeleteAction(…) |
Invokes the passed undelete action method |
| virtual LoadEntity() |
Loads the entity that is going to be undeleted |
| virtual OnAfterUndelete() |
Method that is executed after the actual SQL undelete operation |
| virtual OnBeforeUndelete() |
Method that is executed before the actual SQL undelete 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 undelete request. |
See Also