語言

ConventionPropertyExtensions.GetContainingKeys(IConventionProperty) 方法

定義

取得所有使用此屬性的主鍵或備用鍵(包括包含此屬性的複合鍵)。

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)

參數

property
IConventionProperty

取得主鑰匙和備用鑰匙的財產。

傳回

使用此特性的主要與備用鍵。

適用於