ConventionPropertyExtensions.GetContainingKeys(IConventionProperty) Yöntem

Tanım

Bu özelliği kullanan tüm birincil veya alternatif anahtarları alır (Bu özelliğin dahil olduğu bileşik anahtarlar dahil).

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionKey> GetContainingKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property);
static member GetContainingKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionKey>
<Extension()>
Public Function GetContainingKeys (property As IConventionProperty) As IEnumerable(Of IConventionKey)

Parametreler

property
IConventionProperty

İçin birincil ve alternatif anahtarları almak için özelliği.

Döndürülenler

IEnumerable<IConventionKey>

Bu özelliği kullanan birincil ve alternatif anahtarlar.

Şunlara uygulanır