Search Results for

    Show / Hide Table of Contents

    Class ColumnAttribute

    Assiciates a ModelProperty with one or many database columns.

    Inheritance
    System.Object
    System.Attribute
    ColumnAttribute
    Implements
    System.Runtime.InteropServices._Attribute
    Inherited Members
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    System.Attribute.Match(System.Object)
    System.Attribute.IsDefaultAttribute()
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
    System.Attribute.TypeId
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.DataModel
    Assembly: TimeCockpit.Data.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class ColumnAttribute : Attribute, _Attribute

    Constructors

    ColumnAttribute(Type)

    Initializes a new instance of the ColumnAttribute class.

    Declaration
    public ColumnAttribute(Type dataType)
    Parameters
    Type Name Description
    System.Type dataType

    The .NET type of the column.

    Properties

    DataType

    Gets the .NET type of the column.

    Declaration
    public Type DataType { get; }
    Property Value
    Type Description
    System.Type

    IsNullableName

    Gets or sets the name of the property that provides information about a property being nullable or not.

    Declaration
    public string IsNullableName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The IsNullableName property is only valid for properties which represent a complex type.

    PrecisionPropertyName

    Gets or sets the name of the property that provides the total number of digits to the left and right of the decimal point.

    Declaration
    public string PrecisionPropertyName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The PrecisionPropertyName property is only valid for properties of type System.Decimal.

    ScalePropertyName

    Gets or sets the name of the property that provides the maximum number of decimal digits that can be stored to the right of the decimal point.

    Declaration
    public string ScalePropertyName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The ScalePropertyName property is only valid for properties of type System.Decimal.

    SizePropertyName

    Gets or sets the name of the property that provides the max lenght of the column.

    Declaration
    public string SizePropertyName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The SizePropertyName property is only valid for properties of type System.String.

    ValuePropertyName

    Gets or sets the name of the property that provides the name of the property containing the value.

    Declaration
    public string ValuePropertyName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The ValuePropertyName property is only valid for properties which represent a complex type.

    In This Article
    Back to top Copyright © 2020 software architects gmbh