Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the database column that a property is mapped to.
Inheritance Hierarchy
System.Object
System.Attribute
System.ComponentModel.DataAnnotations.ColumnAttribute
Namespace: System.ComponentModel.DataAnnotations
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False)> _
Public Class ColumnAttribute _
Inherits Attribute
'Usage
Dim instance As ColumnAttribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public class ColumnAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false)]
public ref class ColumnAttribute : public Attribute
[<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)>]
type ColumnAttribute =
class
inherit Attribute
end
public class ColumnAttribute extends Attribute
The ColumnAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
ColumnAttribute() | Initializes a new instance of the ColumnAttribute class. |
![]() |
ColumnAttribute(String) | Initializes a new instance of the ColumnAttribute class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Name | The name of the column the property is mapped to. |
![]() |
Order | The zero-based order of the column the property is mapped to. |
![]() |
TypeId | (Inherited from Attribute.) |
![]() |
TypeName | The database provider specific data type of the column the property is mapped to. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Equals | (Inherited from Attribute.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Attribute.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
IsDefaultAttribute | (Inherited from Attribute.) |
![]() |
Match | (Inherited from Attribute.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfo | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) |
![]() ![]() |
_Attribute.Invoke | (Inherited from Attribute.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
System.ComponentModel.DataAnnotations Namespace
.gif)
.gif)
.gif)
.gif)
.gif)