Attribute indicates that the property implements a table field.
Inheritance Hierarchy
System Attribute
Nemiro.Data ColumnAttribute
Namespace: Nemiro.Data
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax
The ColumnAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ColumnAttribute(String, SqlDbType) |
Initializes a new instance of the ColumnAttribute class with specifying the field name and data type of SQL Server.
| |
| ColumnAttribute(String, Object) |
Initializes a new instance of the ColumnAttribute class with specifying the field name and data type.
| |
| ColumnAttribute(String, SqlDbType, ColumnAttributeFlags) |
Initializes a new instance of the ColumnAttribute class with specifying the field name, data type of SQL Server and flags.
| |
| ColumnAttribute(String, Object, ColumnAttributeFlags) |
Initializes a new instance of the ColumnAttribute class with specifying the field name, data type and flags..
| |
| ColumnAttribute(String, Object, ColumnAttributeFlags, Int32, Object) |
Initializes a new instance of the ColumnAttribute class.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Attribute.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Attribute.) | |
| GetSqlEmptyValue |
Returns empty value.
| |
| GetSqlParameter |
Returns the SQL Server parameter.
| |
| GetType | (Inherited from Object.) | |
| GetValidParameterValue |
Returns valid parameter value.
| |
| IsDefaultAttribute | (Inherited from Attribute.) | |
| Match | (Inherited from Attribute.) | |
| MemberwiseClone | (Inherited from Object.) | |
| SetOwner |
Set parent class.
| |
| ToString | (Inherited from Object.) |
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