Search Results for

    Show / Hide Table of Contents

    Interface ICustomUpgradeVersionHandler

    With custom addins this provids a mechanism to record version numbers representing the state the database is in, and if upgrades are required

    Namespace: LemonEdge.API.Core.Migrations
    Assembly: LemonEdge.API.Core.Migrations.dll
    Syntax
    public interface ICustomUpgradeVersionHandler

    Methods

    GetAccountGlobalSystemValue<T>(string, T)

    Returns the value of the specified key for the whole database

    Declaration
    Task<T> GetAccountGlobalSystemValue<T>(string key, T defaultValue)
    Parameters
    Type Name Description
    string key

    The unique key of the value to return. Typically the name of a custom AddIn module for custom upgrade processes.

    T defaultValue

    The default value to return if there is no value currently

    Returns
    Type Description
    Task<T>

    A task holding the result of the specified setting in the database

    Type Parameters
    Name Description
    T

    The type of value to return. Typically an int if dealing with incrementing version numbers.

    SetAccountGlobalSystemValue<T>(string, T)

    Sets the new value of the specified key for the whole database

    Declaration
    Task SetAccountGlobalSystemValue<T>(string key, T value)
    Parameters
    Type Name Description
    string key

    The unique key of the value to update. Typically the name of a custom AddIn module for custom upgrade processes.

    T value

    The new value to set the database setting too

    Returns
    Type Description
    Task

    A task representing the completion of the operation

    Type Parameters
    Name Description
    T

    The type of value to update. Typically an int if dealing with incrementing version numbers.

    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.