Show / Hide Table of Contents

    Class XDataMapping

    Inheritance
    Object
    XDataMapping
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: XData.Mapping.Dynamic
    Assembly: XData.docfx.dll
    Syntax
    public static class XDataMapping

    Methods

    | Improve this Doc View Source

    CustomMapping<T>()

    Returns dynamic repository structure

    Declaration
    public static IRepositoryStructure<T> CustomMapping<T>()
        where T : class, ISqlObject, new()
    Returns
    Type Description
    IRepositoryStructure<T>

    Dynamic query structure

    Type Parameters
    Name Description
    T

    Repository element mapped type

    Exceptions
    Type Condition
    XDataRuntimeException
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    GetStructure()

    Returns dynamic query structure

    Declaration
    public static IQueryStructure GetStructure()
    Returns
    Type Description
    IQueryStructure

    Dynamic query structure

    See Also
    DataStructureFlag
    IQueryStructure
    | Improve this Doc View Source

    GetStructure(String)

    Returns dynamic query structure

    Declaration
    public static IQueryStructure GetStructure(string baseTableAlias)
    Parameters
    Type Name Description
    String baseTableAlias

    Base table alias

    Returns
    Type Description
    IQueryStructure

    Dynamic query structure

    See Also
    DataStructureFlag
    IQueryStructure
    | Improve this Doc View Source

    GetStructure(String, String, DataStructureFlag, Variable[])

    Returns dynamic query structure

    Declaration
    public static IQueryStructure GetStructure(string baseTableAlias, string context, DataStructureFlag flags = DataStructureFlag.ReadOnly, params Variable[] variables)
    Parameters
    Type Name Description
    String baseTableAlias

    Base table alias

    String context

    Context name

    DataStructureFlag flags

    Data object flags

    Variable[] variables

    Variables

    Returns
    Type Description
    IQueryStructure

    Dynamic query structure

    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    GetStructure(String, DataStructureFlag)

    Returns dynamic query structure

    Declaration
    public static IQueryStructure GetStructure(string baseTableAlias, DataStructureFlag flags)
    Parameters
    Type Name Description
    String baseTableAlias

    Base table alias

    DataStructureFlag flags

    Data object flags

    Returns
    Type Description
    IQueryStructure

    Dynamic query structure

    See Also
    DataStructureFlag
    IQueryStructure
    | Improve this Doc View Source

    GetStructure<T>(String)

    Returns dynamic query structure based on static mapping

    Declaration
    public static IQueryStructure GetStructure<T>(string context = null)
        where T : class, IDataObject, new()
    Parameters
    Type Name Description
    String context

    Context name

    Returns
    Type Description
    IQueryStructure

    Dynamic query structure

    Type Parameters
    Name Description
    T
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    UseMapping<T>()

    Returns dynamic repository inherited structure

    Declaration
    public static IInheritedStructure<T> UseMapping<T>()
        where T : class, ISqlObject, new()
    Returns
    Type Description
    IInheritedStructure<T>

    Dynamic query structure

    Type Parameters
    Name Description
    T

    Repository element mapped type

    Exceptions
    Type Condition
    XDataRuntimeException
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    UseMapping<T>(Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[])

    Returns dynamic repository inherited structure

    Declaration
    public static IRepositoryDescription<T> UseMapping<T>(params Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks)
        where T : class, ISqlObject, new()
    Parameters
    Type Name Description
    Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks
    Returns
    Type Description
    IRepositoryDescription<T>

    Dynamic query structure

    Type Parameters
    Name Description
    T

    Repository element mapped type

    Exceptions
    Type Condition
    XDataRuntimeException
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    UseMapping<T, TParent>()

    Returns dynamic repository inherited structure

    Declaration
    public static IInheritedStructure<T> UseMapping<T, TParent>()
        where T : class, ISqlObject, new()
        where TParent : class, ISqlObject, new()
    Returns
    Type Description
    IInheritedStructure<T>

    Dynamic query structure

    Type Parameters
    Name Description
    T

    Repository element mapped type

    TParent

    Parent mapping structure type

    Exceptions
    Type Condition
    XDataRuntimeException
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    | Improve this Doc View Source

    UseMapping<T, TParent>(Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[])

    Returns dynamic repository inherited structure

    Declaration
    public static IRepositoryDescription<T> UseMapping<T, TParent>(params Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks)
        where T : class, TParent, new()
        where TParent : class, ISqlObject, new()
    Parameters
    Type Name Description
    Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks
    Returns
    Type Description
    IRepositoryDescription<T>

    Dynamic query structure

    Type Parameters
    Name Description
    T

    Repository element mapped type

    TParent

    Parent mapping structure type

    Exceptions
    Type Condition
    XDataRuntimeException
    See Also
    DataStructureFlag
    Variable
    IQueryStructure
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX