Condividi tramite


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Metodo

Definizione

Aggiunge una nuova chiave alternativa a questo tipo di entità.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function AddKey (properties As IReadOnlyList(Of RuntimeProperty)) As RuntimeKey

Parametri

properties
IReadOnlyList<RuntimeProperty>

Proprietà che costituiscono la chiave alternativa.

Restituisce

Chiave appena creata.

Si applica a