ColumnAttribute Constructor (String)

Initializes a new instance of the ColumnAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    name As String _
)
'Usage
Dim name As String

Dim instance As New ColumnAttribute(name)
public ColumnAttribute(
    string name
)
public:
ColumnAttribute(
    String^ name
)
new : 
        name:string -> ColumnAttribute
public function ColumnAttribute(
    name : String
)

Parameters

  • name
    Type: System.String
    The name of the column the property is mapped to.

See Also

Reference

ColumnAttribute Class

ColumnAttribute Overload

System.ComponentModel.DataAnnotations Namespace