IDeleteBehavior interface
namespace: Serenity.Services assembly: Serenity.Net.Services
A delete behavior that can be used as a mixin within a DeleteRequestHandler lifecycle
public interface IDeleteBehavior
Members
name | description |
---|---|
OnAfterDelete(…) | Called after row is inserted to / updated in database |
OnAudit(…) | Called after row is inserted to / updated and auditing should be performed |
OnBeforeDelete(…) | Called just before row is inserted to / updated in database |
OnPrepareQuery(…) | Called when query to load old entity is built |
OnReturn(…) | Called before handler is returning the result |
OnValidateRequest(…) | Called when delete request is validated |
Remarks
A 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: IDeleteBehavior.cs