Search Results for

    Show / Hide Table of Contents

    Class SQLWrapperUpdater

    A class that can be implemented by any custom sql wrapper that should be dynamically generated or updated on every database upgrade

    For instance the system QUERYNAME canvas query is regenerated every time the system is updated to account for any new entities and their changes

    Typically this implementation can also implement IBaseDataSetProcessorWithDBSave to make sure this is automatically run when dependant items are modified too
    Inheritance
    System.Object
    SQLWrapperUpdater
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.API.Migrations.Core
    Assembly: API.dll
    Syntax
    public abstract class SQLWrapperUpdater

    Constructors

    SQLWrapperUpdater(IEntityUpdater, IReadOnlyCache, UserInfo)

    Create a new sqlwrapper updater

    Declaration
    public SQLWrapperUpdater(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user)
    Parameters
    Type Name Description
    IEntityUpdater updater

    The context for modifiying or creating a new SQL Wrapper with

    IReadOnlyCache cache

    The local cache

    UserInfo user

    The current logged in user

    Properties

    Cache

    The local cache

    Declaration
    public IReadOnlyCache Cache { get; }
    Property Value
    Type Description
    IReadOnlyCache

    Updater

    The context for modifiying or creating a new SQL Wrapper with

    Declaration
    public IEntityUpdater Updater { get; }
    Property Value
    Type Description
    IEntityUpdater

    User

    The current logged in user

    Declaration
    public UserInfo User { get; }
    Property Value
    Type Description
    UserInfo

    Methods

    UpgradeWrapper()

    The custom function that is automatically called on every system database upgrade.

    This can create and update a ISQLWrapper as required.

    It is also capable of running any custom code during upgrades, not just upgrading sql wrapper.
    Declaration
    public abstract Task UpgradeWrapper()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.