語言

ConventionPropertyExtensions.GetContainingForeignKeys 方法

定義

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

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

參數

property
IConventionProperty

取得外金鑰的財產。

傳回

使用此特性的外鍵。

適用於