This documentation is archived and is not being maintained.

DataObjectFieldAttribute Constructor

Initializes a new instance of the DataObjectFieldAttribute class.

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.
Show: