Search Results for

    Show / Hide Table of Contents

    Interface ISetCopierCloneAlterer

    Provides a custom ability to alter the item when it is copied only - not when it is being imported

    Namespace: LemonEdge.API.Core.DataIntegration
    Assembly: LemonEdge.API.dll
    Syntax
    public interface ISetCopierCloneAlterer

    Properties

    CopierCloneType

    Declaration
    SetCopierCloneType CopierCloneType { get; set; }
    Property Value
    Type Description
    SetCopierCloneType

    Methods

    AlterCopiedItem(IEntityUpdater, UserInfo, IReadOnlyCache, IBaseEntity)

    A custom ability to alter this item when it is was copied by the user in the UI, not when it is being imported

    Declaration
    Task AlterCopiedItem(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, IBaseEntity sourceItem)
    Parameters
    Type Name Description
    IEntityUpdater host

    The context this item was copied into

    UserInfo user

    The current user

    IReadOnlyCache cache

    The current local cache

    IBaseEntity sourceItem

    The original source item this item was copied from

    Returns
    Type Description
    Task

    A task inidicating the finishing of this method

    CopyRelatedItem(IBaseEntity, EntityRelationship)

    Determines whether the source item should be copied based on the provided relationship

    Declaration
    bool CopyRelatedItem(IBaseEntity sourceItem, EntityRelationship rel)
    Parameters
    Type Name Description
    IBaseEntity sourceItem

    The original source item this item was copied from

    EntityRelationship rel

    The particular relationship from the source item

    Returns
    Type Description
    bool

    GetCustomPropertyInfo(ISetItemInfo, IEntityUpdater)

    Declaration
    Task<string> GetCustomPropertyInfo(ISetItemInfo info, IEntityUpdater host)
    Parameters
    Type Name Description
    ISetItemInfo info
    IEntityUpdater host
    Returns
    Type Description
    Task<string>

    GetPropertyValue(ISetItemInfo, string, object)

    Declaration
    object GetPropertyValue(ISetItemInfo info, string propName, object currentValue)
    Parameters
    Type Name Description
    ISetItemInfo info
    string propName
    object currentValue
    Returns
    Type Description
    object

    LoadCustomPropInfo(IEntityUpdater, UserInfo, IReadOnlyCache, string)

    Declaration
    Task LoadCustomPropInfo(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, string customPropInfo)
    Parameters
    Type Name Description
    IEntityUpdater host
    UserInfo user
    IReadOnlyCache cache
    string customPropInfo
    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)

    See Also

    ISetCopier
    ISetItemInfo
    SetItemInfo
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.