Condividi tramite


IMutableEntityType.AddKey Metodo

Definizione

Overload

AddKey(IMutableProperty)

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

AddKey(IReadOnlyList<IMutableProperty>)

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

AddKey(IMutableProperty)

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function AddKey (property As IMutableProperty) As IMutableKey

Parametri

property
IMutableProperty

Proprietà da usare come chiave alternativa.

Restituisce

Chiave appena creata.

Si applica a

AddKey(IReadOnlyList<IMutableProperty>)

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function AddKey (properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

Parametri

properties
IReadOnlyList<IMutableProperty>

Proprietà che costituiscono la chiave alternativa.

Restituisce

Chiave appena creata.

Si applica a