Interface IEntityUpdaterSaveExtender
Interface to implement if wanting to hook into the save process
If you want to modify the save itself in terms of the entities being inserted, deleted, updated that can be accomplished using IBaseDataSetProcessorWithDBSave
This process lets you observe all crud operations and also add custom sql as part of the transaction save if requiredEach save process creates a new IEntityUpdaterSaveExtender implementation
Namespace: LemonEdge.API.Core.Extensions.SaveExtension
Assembly: LemonEdge.API.dll
Syntax
public interface IEntityUpdaterSaveExtender
Properties
Options
Options for handling the extender
Declaration
SaveExtenderOptions Options { get; }
Property Value
Type | Description |
---|---|
SaveExtenderOptions |
Methods
OnAfterSave(ISaveContextAfter)
Occurs after the save is completed and the transaction is committed
Declaration
Task OnAfterSave(ISaveContextAfter context)
Parameters
Type | Name | Description |
---|---|---|
ISaveContextAfter | context |
Returns
Type | Description |
---|---|
Task |
OnBeforeSave(ISaveContextPrior)
Occurs before the save is started processing and before any transaction
Declaration
Task OnBeforeSave(ISaveContextPrior context)
Parameters
Type | Name | Description |
---|---|---|
ISaveContextPrior | context | The details of the save process |
Returns
Type | Description |
---|---|
Task |