The ColumnAttribute type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| AllowNull | ||
| ColumnName |
Name field of database table.
| |
| DataType |
Data type field of database table. You can use SqlDbType.
| |
| Default |
Default value.
| |
| DisplayName |
Display name.
| |
| Flags |
Field flags. Is bitmask of ColumnAttributeFlags.
| |
| IsIdentity | ||
| IsPrimaryKey | Flags contains PrimaryKey or not.
| |
| IsSql |
Is SQL server or not.
| |
| IsUnique | ||
| OwnerClass |
Parent class instance.
| |
| OwnerClassType |
Type of parent class.
| |
| ParameterName |
Parameter name for database. For example: @col_name.
| |
| Size |
Maximum field size (in bytes). Zero - no restrictions (default).
| |
| SqlDbType |
SQL Server data type.
| |
| TypeId | (Inherited from Attribute.) |
See Also