DataObjectFieldAttribute Constructor (Boolean, Boolean)

DataObjectFieldAttribute Constructor (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.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public DataObjectFieldAttribute(
	bool primaryKey,
	bool isIdentity
)

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft