EdmScalarPropertyAttribute.EntityKeyProperty Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value that indicates whether the property is part of the entity key.
public:
property bool EntityKeyProperty { bool get(); void set(bool value); };
public bool EntityKeyProperty { get; set; }
member this.EntityKeyProperty : bool with get, set
Public Property EntityKeyProperty As Boolean
Property Value
The value that indicates whether the property is part of the entity key.
Remarks
Because an entity key can contain more than one property, the EntityKeyProperty can be set to true for more than one property of an entity type.
The IsNullable and EntityKeyProperty properties cannot both be true
because key members cannot be null
.