Share via


EntityMetadata.PrimaryIdAttribute Property

Definition

Gets the name of the attribute that is the primary id for the entity.

public:
 property System::String ^ PrimaryIdAttribute { System::String ^ get(); };
[System.Runtime.Serialization.DataMember]
public string PrimaryIdAttribute { get; }
[<System.Runtime.Serialization.DataMember>]
member this.PrimaryIdAttribute : string
Public ReadOnly Property PrimaryIdAttribute As String

Property Value

The name of the attribute that is the primary id for the entity.

Attributes

Remarks

The value is usually <entity logical name> + “id”.

Applies to