ISaveRequestHandler interface

namespace: Serenity.Services   assemblySerenity.Net.Services

Represents a SaveRequestHandler. Is used with SaveBehavior objects.

public interface ISaveRequestHandler : IRequestHandler


name description
Connection { get; } Current connection
Context { get; } Current request context
IsCreate { get; } Is this an INSERT operation?
IsUpdate { get; } Is this an UPDATE operation?
Old { get; } Old row, if any, otherwise null
Request { get; } Save request
Response { get; } Save response
Row { get; } New row
StateBag { get; } A state bag that can be used as storage within a request handler context
UnitOfWork { get; } Current transaction

See Also