IMutableEntityType.AddKey Methode

Definition

Überlädt

AddKey(IMutableProperty)

Fügt diesem Entitätstyp einen neuen alternativen Schlüssel hinzu.

AddKey(IReadOnlyList<IMutableProperty>)

Fügt diesem Entitätstyp einen neuen alternativen Schlüssel hinzu.

AddKey(IMutableProperty)

Fügt diesem Entitätstyp einen neuen alternativen Schlüssel hinzu.

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

Parameter

property
IMutableProperty

Die Eigenschaft, die als Alternativer Schlüssel verwendet werden soll.

Gibt zurück

Der neu erstellte Schlüssel.

Gilt für:

AddKey(IReadOnlyList<IMutableProperty>)

Fügt diesem Entitätstyp einen neuen alternativen Schlüssel hinzu.

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

Parameter

properties
IReadOnlyList<IMutableProperty>

Die Eigenschaften, aus denen der alternative Schlüssel besteht.

Gibt zurück

Der neu erstellte Schlüssel.

Gilt für: