Aracılığıyla paylaş


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

Parametreler

entityType
IEntityType

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