DataObjectFieldAttribute Constructor
.NET Framework 4
Initializes a new instance of the DataObjectFieldAttribute class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
DataObjectFieldAttribute(Boolean) | Initializes a new instance of the DataObjectFieldAttribute class and indicates whether the field is the primary key for the data row. |
|
DataObjectFieldAttribute(Boolean, Boolean) | Initializes a new instance of the DataObjectFieldAttribute class and indicates whether the field is the primary key for the data row, and whether the field is a database identity field. |
|
DataObjectFieldAttribute(Boolean, Boolean, Boolean) | Initializes a new instance of the DataObjectFieldAttribute class and indicates whether the field is the primary key for the data row, whether the field is a database identity field, and whether the field can be null. |
|
DataObjectFieldAttribute(Boolean, Boolean, Boolean, Int32) | Initializes a new instance of the DataObjectFieldAttribute class and indicates whether the field is the primary key for the data row, whether it is a database identity field, and whether it can be null and sets the length of the field. |