ColumnAttribute Class
Associates a property with a column in a database table.
Inheritance Hierarchy
System.Object
System.Attribute
DbExtensions.ColumnAttribute
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public sealed class ColumnAttribute : Attribute
The ColumnAttribute type exposes the following members.
Constructors
| Name | Description |
|---|---|
| ColumnAttribute | Initializes a new instance of the ColumnAttribute class |
Properties
| Name | Description |
|---|---|
| AutoSync | Gets or sets the AutoSync enumeration. |
| ConvertTo | Gets or sets the type to convert this member to before sending to the database. |
| IsDbGenerated | Gets or sets whether a column contains values that the database auto-generates. |
| IsPrimaryKey | Gets or sets whether this class member represents a column that is part or all of the primary key of the table. |
| IsVersion | Gets or sets whether the column type of the member is a database timestamp or version number. |
| Name | Gets or sets the name of a column. |