MutableEntityTypeExtensions.FindKey(IMutableEntityType, IProperty) Yöntem

Tanım

Verilen özellikte tanımlanan birincil veya alternatif anahtarı alır. Verilen null özellik için bir anahtar tanımlanmamışsa döndürür.

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

Parametreler

entityType
IMutableEntityType

Varlık türü.

property
IProperty

Anahtarın tanımlandığı özellik.

Döndürülenler

IMutableKey

Anahtar veya tanımlanmamışsa null.

Şunlara uygulanır