Udostępnij za pośrednictwem


IMutableEntityType.AddKey Metoda

Definicja

Przeciążenia

AddKey(IMutableProperty)

Dodaje nowy klucz alternatywny do tego typu jednostki.

AddKey(IReadOnlyList<IMutableProperty>)

Dodaje nowy klucz alternatywny do tego typu jednostki.

AddKey(IMutableProperty)

Dodaje nowy klucz alternatywny do tego typu jednostki.

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

Parametry

property
IMutableProperty

Właściwość do użycia jako klucz alternatywny.

Zwraca

Nowo utworzony klucz.

Dotyczy

AddKey(IReadOnlyList<IMutableProperty>)

Dodaje nowy klucz alternatywny do tego typu jednostki.

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

Parametry

properties
IReadOnlyList<IMutableProperty>

Właściwości tworzące klucz alternatywny.

Zwraca

Nowo utworzony klucz.

Dotyczy