Export (0) Print
Expand All

ColumnAttribute Class

Specifies the database column that a property is mapped to.

System.Object
  System.Attribute
    System.ComponentModel.DataAnnotations.ColumnAttribute

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  EntityFramework (in EntityFramework.dll)

[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public class ColumnAttribute : Attribute

The ColumnAttribute type exposes the following members.

  NameDescription
Public methodColumnAttribute() Initializes a new instance of the ColumnAttribute class.
Public methodColumnAttribute(String) Initializes a new instance of the ColumnAttribute class.
Top

  NameDescription
Public propertyName The name of the column the property is mapped to.
Public propertyOrder The zero-based order of the column the property is mapped to.
Public propertyTypeId (Inherited from Attribute.)
Public propertyTypeName The database provider specific data type of the column the property is mapped to.
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate method_Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.Invoke (Inherited from Attribute.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft