ColumnAttribute Class

Definition

Specifies the database column that a property is mapped to.

[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
public class ColumnAttribute : Attribute
type ColumnAttribute = class
    inherit Attribute
Public Class ColumnAttribute
Inherits Attribute
Inheritance
ColumnAttribute
Attributes

Constructors

ColumnAttribute()

Initializes a new instance of the ColumnAttribute class.

ColumnAttribute(String)

Initializes a new instance of the ColumnAttribute class.

Properties

Name

The name of the column the property is mapped to.

Order

The zero-based order of the column the property is mapped to.

TypeName

The database provider specific data type of the column the property is mapped to.

Applies to