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: