ColumnAttribute Class

An attribute that qualifies any parameter in the constructor, associating the parameter with the column that has the specified name.

C#
[AttributeUsage(System.AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)]
public sealed class ColumnAttribute : Attribute
Inheritance
ColumnAttribute
Attributes

Constructors

ColumnAttribute(string)

Initializes a new instance of the ColumnAttribute class.

Properties

Name

Gets the column name.

TypeId (Inherited from Attribute)

Methods

Equals(object) (Inherited from Attribute)
GetHashCode() (Inherited from Attribute)
IsDefaultAttribute() (Inherited from Attribute)
Match(object) (Inherited from Attribute)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

See Also

Constructors Detail

ColumnAttribute(string)

Initializes a new instance of the ColumnAttribute class.

C#
public ColumnAttribute(string name)

Parameters

name
string

The column name.

Properties Detail

Name

Gets the column name.

C#
public string Name { get; }

Property Value