Show / Hide Table of Contents

    Class SubqueryAttribute

    Data object subquery attribute

    Inheritance
    Object
    Attribute
    DataSourceAttribute
    SubqueryAttribute
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.Match(Object)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: XData.Mapping
    Assembly: XData.docfx.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public sealed class SubqueryAttribute : DataSourceAttribute
    Examples
        Subquery("A", typeof(DocSpecAmounts), "Amount", Grouping = DataGrouping.Sum)

    Constructors

    | Improve this Doc View Source

    SubqueryAttribute(String, Type, String)

    Data object subquery attribute

    Declaration
    public SubqueryAttribute(string alias, Type subqueryType, string propertyName)
    Parameters
    Type Name Description
    String alias

    Subquery alias

    Type subqueryType

    Object type represents subquery structure

    String propertyName

    Subquery selected property

    Exceptions
    Type Condition
    XDataRuntimeException

    Subquery alias cannot be null or empty string

    XDataRuntimeException

    Object type represents subquery structure cannot be null

    XDataRuntimeException

    Subquery selected property cannot be null or empty string

    Properties

    | Improve this Doc View Source

    Alias

    Subquery alias

    Declaration
    public override string Alias { get; protected set; }
    Property Value
    Type Description
    String
    Overrides
    DataSourceAttribute.Alias
    | Improve this Doc View Source

    Grouping

    Subquery grouping mode

    Declaration
    public DataGrouping Grouping { get; set; }
    Property Value
    Type Description
    DataGrouping
    Remarks

    Subquery selected property (see PropertyName) aggregate function

    Grouping in subquery mast to be defined by GroupOrder

    WARNING! Do not use properties inside grouped subqueries! Use ColumnAttribute instead!

    | Improve this Doc View Source

    PropertyName

    Subquery selected property

    Declaration
    public string PropertyName { get; }
    Property Value
    Type Description
    String
    Remarks

    Only one property (or column) can be selected from subquery

    | Improve this Doc View Source

    SubqueryType

    Object type represents subquery structure

    Declaration
    public Type SubqueryType { get; }
    Property Value
    Type Description
    Type
    | Improve this Doc View Source

    Type

    Data source type

    Declaration
    public override DataSourceType Type { get; }
    Property Value
    Type Description
    DataSourceType Subquery
    Overrides
    DataSourceAttribute.Type
    | Improve this Doc View Source

    TypeId

    When implemented in a derived class, gets a unique identifier for this Attribute.

    Declaration
    public override object TypeId { get; }
    Property Value
    Type Description
    Object

    An Object that is a unique identifier for the attribute.

    Overrides
    Attribute.TypeId

    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.SetExpression<TTag, TResult>(TTag, Expression<Func<IQueryStructureAdapter, TResult>>)

    See Also

    DataTableAttribute
    InnerViewAttribute
    SubqueryLinkAttribute
    SubqueryFilterAttribute
    SubQuery
    ColumnExpressionAttribute
    PropertyExpressionAttribute
    ExpressionFilterAttribute
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX