Search Results for

    Show / Hide Table of Contents

    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 required

    Each 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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.