Show / Hide Table of Contents

    Class ColumnAttribute

    Column mapping attribute

    Inheritance
    Object
    Attribute
    ColumnAttribute
    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 ColumnAttribute : Attribute
    Remarks

    Used to map data without declaring real property

    This useful for declare Id, introduce "virtual" property for PropertyName, ChildProperty or can be used for grouping (see GroupOrder)

    Constructors

    | Improve this Doc View Source

    ColumnAttribute(String, Type, String, String)

    Column attribute

    Declaration
    public ColumnAttribute(string propertyName, Type propertyType, string source = "", string fieldName = "")
    Parameters
    Type Name Description
    String propertyName

    Property name

    Type propertyType

    Property type

    String source

    Source alias

    String fieldName

    Field name

    Exceptions
    Type Condition
    XDataRuntimeException

    Property name cannot be null or empty string

    XDataRuntimeException

    Field name cannot be null or empty string

    XDataRuntimeException

    Property type cannot be null

    Properties

    | Improve this Doc View Source

    FieldName

    Field name

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

    Flags

    Property flags

    Declaration
    public DataPropertyFlag Flags { get; set; }
    Property Value
    Type Description
    DataPropertyFlag
    See Also
    DataPropertyFlag
    | Improve this Doc View Source

    Grouping

    Grouping mode

    Declaration
    public DataGrouping Grouping { get; set; }
    Property Value
    Type Description
    DataGrouping
    See Also
    DataGrouping
    | Improve this Doc View Source

    GroupOrder

    Grouping order

    Declaration
    public int GroupOrder { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Hidden

    Hidden column flag

    Declaration
    public bool Hidden { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Used to exclude column from query selected columns

    Hidden column can be used as: PropertyName, ChildProperty or for grouping (see GroupOrder)

    | Improve this Doc View Source

    NativeSqlType

    Native SQL type name

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

    Used to specify native SQL column type when conflicted with default type mapping

    WARNING! May be not supported by database adapter!

    | Improve this Doc View Source

    OrderBy

    Order by priority

    Declaration
    public int OrderBy { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    OrderByDesc

    Order by desc flag

    Declaration
    public bool OrderByDesc { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    PropertyName

    Property name

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

    PropertyType

    Property type

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

    Reference

    Referenced property name

    Declaration
    public string Reference { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ReferenceSource

    Referenced property source alias

    Declaration
    public string ReferenceSource { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Source

    Data source alias

    Declaration
    public string Source { get; }
    Property Value
    Type Description
    String
    | 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>>)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX