Show / Hide Table of Contents

    Interface IQueryStructureAdapter

    Query structure mapping adapter interface

    Namespace: XData.Mapping.Dynamic
    Assembly: XData.docfx.dll
    Syntax
    public interface IQueryStructureAdapter

    Methods

    | Improve this Doc View Source

    CastTo<T>()

    Type cast modifier

    Declaration
    IQueryStructureAdapter CastTo<T>()
    Returns
    Type Description
    IQueryStructureAdapter
    Type Parameters
    Name Description
    T

    Type to cast

    | Improve this Doc View Source

    Expr<TValue>(String, Expression<Func<IQueryStructureAdapter, TValue>>, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])

    SQL expression mapping

    Declaration
    TValue Expr<TValue>(string fieldName, Expression<Func<IQueryStructureAdapter, TValue>> expr, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String fieldName

    Expression field name

    Expression<Func<IQueryStructureAdapter, TValue>> expr

    Expression

    DbType dbType

    Expression database type

    Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Expression value

    Type Parameters
    Name Description
    TValue

    Expression result type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    DataExpressionType
    DbType
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Expr<TValue>(String, DataExpressionType, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])

    SQL expression mapping

    Declaration
    TValue Expr<TValue>(string fieldName, DataExpressionType type, string exprText, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String fieldName

    Expression field name

    DataExpressionType type

    Expression source type

    String exprText

    Expression text

    DbType dbType

    Expression database type

    Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Expression value

    Type Parameters
    Name Description
    TValue

    Expression result type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    DataExpressionType
    DbType
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Field<TValue>(Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])

    Field mapping

    Declaration
    TValue Field<TValue>(params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Field value

    Type Parameters
    Name Description
    TValue

    Field type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Field<TValue>(String, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])

    Field mapping

    Declaration
    TValue Field<TValue>(string sourceAlias, string fieldName, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String sourceAlias

    Source alias

    String fieldName

    Field name

    DbType dbType

    Field database type

    Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Field value

    Type Parameters
    Name Description
    TValue

    Field type

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Field<TValue>(String, String, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])

    Field mapping

    Declaration
    TValue Field<TValue>(string sourceAlias, string fieldName, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String sourceAlias

    Source alias

    String fieldName

    Field name

    Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Field value

    Type Parameters
    Name Description
    TValue

    Field type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Ref<TValue>(String, String, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])

    Inner view property reference mapping

    Declaration
    TValue Ref<TValue>(string sourceAlias, string property, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String sourceAlias

    Referenced property subquery alias

    String property

    Referenced property name

    Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Referenced property value

    Type Parameters
    Name Description
    TValue

    Referenced property type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    Ref<TValue, TInnerView>(String, Expression<Func<TInnerView, Object>>, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])

    Inner view property reference mapping

    Declaration
    TValue Ref<TValue, TInnerView>(string sourceAlias, Expression<Func<TInnerView, object>> property, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
        where TInnerView : class
    Parameters
    Type Name Description
    String sourceAlias

    Referenced property subquery alias

    Expression<Func<TInnerView, Object>> property

    Referenced property name

    Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Referenced property value

    Type Parameters
    Name Description
    TValue

    Referenced property type

    TInnerView

    Referenced inner view type

    Remarks

    WARNING! Can be used in dynamic query mapping only!

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    | Improve this Doc View Source

    XmlField<TValue>(String, String, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])

    XML field mapping

    Declaration
    TValue XmlField<TValue>(string sourceAlias, string fieldName, string xPath, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
    Parameters
    Type Name Description
    String sourceAlias

    XML data source alias

    String fieldName

    XML field name

    String xPath

    XML field XPath expression

    DbType dbType

    XML field database type

    Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes

    Property mapping attributes

    Returns
    Type Description
    TValue

    Field value

    Type Parameters
    Name Description
    TValue

    XML Field type

    Remarks

    WARNING! Can be used in dynamic query mapping for XmlSource(String, String, String, Expression<Func<IInnerFilterAdapter, IFilterDescription>>[]) data sources only!

    See Also
    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)

    Extension Methods

    SerializationExtensions.ToXml<T>(T)
    CollectionsExtensions.SetValue<TKey, T>(TKey, T)
    CollectionsExtensions.AsEnum<T>(T)
    DataObjectQueryableExtensions.CompareVariable(Object, FilterOperation, String)
    Processing.Do<T>(T, Action<IProcess<T>>[])
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>)
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>, TResult)
    TypeExtensions.ChangeType<T>(Object)
    TypeExtensions.ChangeType(Object, Type)
    TypeExtensions.InvokeMethod<TRet>(Object, Type[], Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Type[], Expression<Action>, BindingFlags)
    TypeExtensions.InvokeMethod<TRet>(Object, Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Expression<Action>, BindingFlags)
    SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)
    QueryDescriptionExtensions.Exists(IQueryStructureAdapter, String)
    QueryDescriptionExtensions.Case<T, TResult>(IQueryStructureAdapter, Expression<Func<IQueryStructureAdapter, T>>, Expression<Func<IQueryStructureAdapter, TResult>>, TaggedExpression<T, TResult>[])
    QueryDescriptionExtensions.DateDiff<T>(IQueryStructureAdapter, Expression<Func<IQueryStructureAdapter, DateTime>>, Expression<Func<IQueryStructureAdapter, DateTime>>, DateDiffKind)
    QueryDescriptionExtensions.HasFlag<T>(IQueryStructureAdapter, Expression<Func<IQueryStructureAdapter, T>>, Expression<Func<IQueryStructureAdapter, T>>, Expression<Func<IQueryStructureAdapter, T>>, Expression<Func<IQueryStructureAdapter, T>>)
    QueryDescriptionExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IQueryStructureAdapter, TResult>>)
    QueryDescriptionExtensions.SqlFn<TResult>(IQueryStructureAdapter, String, Expression<Func<IQueryStructureAdapter, Object>>[])
    QueryDescriptionExtensions.SqlParam<TResult>(IQueryStructureAdapter, String, DbType, Expression<Func<IProcedureParameterAdapter, IProcedureParameterFlag>>[])
    QueryDescriptionExtensions.SqlExpr<TResult>(IQueryStructureAdapter, String, Expression<Func<IQueryStructureAdapter, Object>>[])
    QueryDescriptionExtensions.GetVariable<TResult>(IQueryStructureAdapter, String)

    See Also

    Select<TResult>(Expression<Func<IQueryStructureAdapter, TResult>>)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX