ConventionEntityTypeExtensions.FindKey(IConventionEntityType, 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.IConventionKey FindKey (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindKey : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
<Extension()>
Public Function FindKey (entityType As IConventionEntityType, property As IProperty) As IConventionKey

Parametreler

entityType
IConventionEntityType

Varlık türü.

property
IProperty

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

Döndürülenler

IConventionKey

Anahtar veya tanımlanmamışsa null.

Şunlara uygulanır