Aracılığıyla paylaş


ConventionEntityTypeExtensions.FindKey Yöntem

Tanım

Verilen özellikte tanımlanan birincil veya alternatif anahtarı alır. Verilen özellik için hiçbir anahtar tanımlanmadıysa döndürür null .

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

Anahtar veya tanımlı değilse null.

Şunlara uygulanır