Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataObjectFieldAttribute::IsIdentity Property

 

Gets a value indicating whether a property represents an identity field in the underlying data.

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

public:
property bool IsIdentity {
	bool get();
}

Property Value

Type: System::Boolean

true if the property represents an identity field in the underlying data; otherwise, false. The default value is false.

Set the IsIdentity property to true when the DataObjectFieldAttribute attribute is applied to a property that represents an identity field in the underlying data store. Typically an identity field is generated by the data store and uniquely identifies an entity in the data store.

Set the IsIdentity property with one of the DataObjectFieldAttribute constructors.

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