AX#

Search Results for

    Show / Hide Table of Contents

    Class IPlainExtensions

    Provides a series of extension methods to work with POCO objects.

    Inheritance
    object
    IPlainExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.dll
    Syntax
    public static class IPlainExtensions

    Methods

    | Edit this page View Source

    FromOnline<T>(T, ITwinObject)

    Copies data from online of a twin object into a new instance of respective POCO object

    Declaration
    public static Task<T> FromOnline<T>(this T plain, ITwinObject twin) where T : IPlain
    Parameters
    Type Name Description
    T plain

    Target POCO object

    ITwinObject twin

    Source online twin object.

    Returns
    Type Description
    Task<T>

    New instance of a POCO object populated by the online data.

    Type Parameters
    Name Description
    T

    POCO object type

    | Edit this page View Source

    FromShadow<T>(T, ITwinObject)

    Copies data from twin shadow object into a POCO object.

    Declaration
    public static Task<T> FromShadow<T>(this T plain, ITwinObject twin) where T : IPlain
    Parameters
    Type Name Description
    T plain

    Target POCO object.

    ITwinObject twin

    Source twin object.

    Returns
    Type Description
    Task<T>

    New instance of POCO object populated with data from the shadows of the twin object.

    Type Parameters
    Name Description
    T

    POCO object type

    | Edit this page View Source

    ToOnline<T>(T, ITwinObject)

    Copies data from plain object to respective twin object online data.

    Declaration
    public static Task ToOnline<T>(this T plain, ITwinObject twin) where T : IPlain
    Parameters
    Type Name Description
    T plain

    Source POCO object

    ITwinObject twin

    Target twin object.

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T

    POCO object type

    | Edit this page View Source

    ToShadow<T>(T, ITwinObject)

    Copies data from the POCO object into respective shadows of the twin object.

    Declaration
    public static void ToShadow<T>(this T plain, ITwinObject twin) where T : IPlain
    Parameters
    Type Name Description
    T plain

    Source POCO instance

    ITwinObject twin

    Target twin instance.

    Type Parameters
    Name Description
    T

    Source POCO type

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors