Search Results for

    Show / Hide Table of Contents

    Class CustomFunctionsHelper

    Provides a helper class for calling methods on ICustomFunctions through IEntityUpdater

    Inheritance
    object
    CustomFunctionsHelper
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Data
    Assembly: LemonEdge.API.dll
    Syntax
    public sealed class CustomFunctionsHelper

    Constructors

    CustomFunctionsHelper()

    Declaration
    public CustomFunctionsHelper()

    Methods

    ParseItemInfo(string)

    Retrieves the formatted header information for a specified item in the system

    Declaration
    public static (DateTimeOffset Created, DateTimeOffset Modified, Guid createdBy, Guid modifiedBy, string CreatedByLabel, string ModifiedByLabel, Guid[] ModifiedBys) ParseItemInfo(string itemInfo)
    Parameters
    Type Name Description
    string itemInfo

    The string returned from calling GetItemInfo(Guid, Guid)

    Returns
    Type Description
    (DateTimeOffset Created, DateTimeOffset Modified, Guid createdBy, Guid modifiedBy, string CreatedByLabel, string ModifiedByLabel, Guid[] ModifiedBys)

    A formatted set of information about the specified item

    Remarks

    For instance you can call this method as so:

    var (Created, Modified, createdBy, modifiedBy, createdByLabel, modifiedByLabel) = 
        API.CustomFunctionsHelper.ParseItemInfo(await cn.GetCustomFunctions.GetItemInfo(myTypeID, myItem.ID));

    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.