MutableEntityTypeExtensions.AddKey(IMutableEntityType, IMutableProperty) Yöntem

Tanım

Bu varlık türüne yeni bir alternatif anahtar ekler.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
<Extension()>
Public Function AddKey (entityType As IMutableEntityType, property As IMutableProperty) As IMutableKey

Parametreler

entityType
IMutableEntityType

Varlık türü.

property
IMutableProperty

Alternatif anahtar olarak kullanmak için özelliği.

Döndürülenler

IMutableKey

Yeni oluşturulan anahtar.

Şunlara uygulanır