Search Results for

    Show / Hide Table of Contents

    Interface ISaveContextPrior

    Inherited Members
    ISaveContext.GetItems(EntityOperation)
    ISaveContext.GetItems<T>(EntityOperation)
    ISaveContext.GetItems(EntityOperation, Type)
    ISaveContext.GetModifiedItems(EntityOperation)
    ISaveContext.GetModifiedItems<T>(EntityOperation)
    ISaveContext.GetModifiedItems(EntityOperation, Type)
    ISaveContext.Context
    Namespace: LemonEdge.API.Core.Extensions.SaveExtension
    Assembly: LemonEdge.API.dll
    Syntax
    public interface ISaveContextPrior : ISaveContext

    Methods

    AddNewItem(Type)

    Creates a new IBaseEntity of the provided that will be added to the current context.

    Declaration
    Task<IBaseEntity> AddNewItem(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Task<IBaseEntity>

    AddNewItem<T>()

    Creates a new IBaseEntity of type T that will be added to the current context.

    Declaration
    Task<T> AddNewItem<T>() where T : IBaseEntity
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T

    AppendCustomSqlScriptToSave(string)

    Declaration
    void AppendCustomSqlScriptToSave(string script)
    Parameters
    Type Name Description
    string script

    UpdateItemProperty(IBaseEntity, string, object?)

    Updates the property of the item and all inherited items to the specified value for entities undergoing an Insert or Update operation. Delete operations will be ignored

    Declaration
    void UpdateItemProperty(IBaseEntity item, string propertyName, object? value)
    Parameters
    Type Name Description
    IBaseEntity item

    The IBaseEntity entity to update

    string propertyName

    The property name as a string

    object value

    The value to assign to the property

    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.