Condividi tramite


Proprietà EntityKey.EntityKeyValues

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene o imposta i valori della chiave che identificano l'entità.

Spazio dei nomi:  System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification := "Required for this feature")> _
<DataMemberAttribute> _
Public Property EntityKeyValues As EntityKeyMember()
    Get 
    Set
'Utilizzo
Dim instance As EntityKey 
Dim value As EntityKeyMember()

value = instance.EntityKeyValues

instance.EntityKeyValues = value
[SuppressMessageAttribute("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Required for this feature")]
[DataMemberAttribute]
public EntityKeyMember[] EntityKeyValues { get; set; }
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1819:PropertiesShouldNotReturnArrays", Justification = L"Required for this feature")]
[DataMemberAttribute]
public:
property array<EntityKeyMember^>^ EntityKeyValues {
    array<EntityKeyMember^>^ get ();
    void set (array<EntityKeyMember^>^ value);
}
[<SuppressMessageAttribute("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Required for this feature")>]
[<DataMemberAttribute>]
member EntityKeyValues : EntityKeyMember[] with get, set
function get EntityKeyValues () : EntityKeyMember[]
function set EntityKeyValues (value : EntityKeyMember[])

Valore proprietà

Tipo: System.Data.Entity.Core.EntityKeyMember[]
Valori della chiave che identificano l'entità.

Vedere anche

Riferimento

EntityKey Classe

Spazio dei nomi System.Data.Entity.Core