Class ColumnAttribute
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Assiciates a ModelProperty with one or many database columns.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class ColumnAttribute : Attribute, _Attribute
- Inheritance
-
ObjectAttributeColumnAttribute
- Implements
-
_Attribute
- Inherited Members
-
Attribute.GetCustomAttributes(MemberInfo, Type)Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)Attribute.GetCustomAttributes(MemberInfo)Attribute.GetCustomAttributes(MemberInfo, Boolean)Attribute.IsDefined(MemberInfo, Type)Attribute.IsDefined(MemberInfo, Type, Boolean)Attribute.GetCustomAttribute(MemberInfo, Type)Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)Attribute.GetCustomAttributes(ParameterInfo)Attribute.GetCustomAttributes(ParameterInfo, Type)Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)Attribute.GetCustomAttributes(ParameterInfo, Boolean)Attribute.IsDefined(ParameterInfo, Type)Attribute.IsDefined(ParameterInfo, Type, Boolean)Attribute.GetCustomAttribute(ParameterInfo, Type)Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)Attribute.GetCustomAttributes(Module, Type)Attribute.GetCustomAttributes(Module)Attribute.GetCustomAttributes(Module, Boolean)Attribute.GetCustomAttributes(Module, Type, Boolean)Attribute.IsDefined(Module, Type)Attribute.IsDefined(Module, Type, Boolean)Attribute.GetCustomAttribute(Module, Type)Attribute.GetCustomAttribute(Module, Type, Boolean)Attribute.GetCustomAttributes(Assembly, Type)Attribute.GetCustomAttributes(Assembly, Type, Boolean)Attribute.GetCustomAttributes(Assembly)Attribute.GetCustomAttributes(Assembly, Boolean)Attribute.IsDefined(Assembly, Type)Attribute.IsDefined(Assembly, Type, Boolean)Attribute.GetCustomAttribute(Assembly, Type)Attribute.GetCustomAttribute(Assembly, Type, Boolean)Attribute.Equals(Object)Attribute.GetHashCode()Attribute.Match(Object)Attribute.IsDefaultAttribute()Attribute._Attribute.GetTypeInfoCount(UInt32)Attribute._Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)Attribute._Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)Attribute.TypeIdObject.ToString()Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetType()Object.MemberwiseClone()
Constructors
ColumnAttribute(Type)
Initializes a new instance of the ColumnAttribute class.
public ColumnAttribute(Type dataType)
Parameters
dataTypeTypeThe .NET type of the column.
Properties
DataType
Gets the .NET type of the column.
public Type DataType { get; }
Property Value
- Type
IsNullableName
Gets or sets the name of the property that provides information about a property being nullable or not.
public string IsNullableName { get; set; }
Property Value
- 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.
public string PrecisionPropertyName { get; set; }
Property Value
- 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.
public string ScalePropertyName { get; set; }
Property Value
- 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.
public string SizePropertyName { get; set; }
Property Value
- 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.
public string ValuePropertyName { get; set; }
Property Value
- String
Remarks
The ValuePropertyName property is only valid for properties which represent a complex type.