DataObjectFieldAttribute Constructor (Boolean, Boolean, Boolean, Int32)
.NET Framework (current version)
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.
Assembly: System (in System.dll)
public: DataObjectFieldAttribute( bool primaryKey, bool isIdentity, bool isNullable, int length )
Parameters
- primaryKey
-
Type:
System::Boolean
true to indicate that the field is in the primary key of the data row; otherwise, false.
- isIdentity
-
Type:
System::Boolean
true to indicate that the field is an identity field that uniquely identifies the data row; otherwise, false.
- isNullable
-
Type:
System::Boolean
true to indicate that the field can be null in the data store; otherwise, false.
- length
-
Type:
System::Int32
The length of the field in bytes.
.NET Framework
Available since 2.0
Available since 2.0
Show: