Class ColumnNameAttribute
Overrides the column name used when mapping a property or field to a table column.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public class ColumnNameAttribute : Attribute, _Attribute
- Inheritance
-
ColumnNameAttribute
- Implements
- Inherited Members
Constructors
ColumnNameAttribute(string)
Initializes a new instance of ColumnNameAttribute with the specified column name.
public ColumnNameAttribute(string columnName)
Parameters
columnNamestringThe column name to use in the table.
Properties
Name
The column name to use in the table.
public string Name { get; set; }