ConventionKeyExtensions.GetReferencingForeignKeys(IConventionKey) 方法

定义

获取面向给定主键或备用键的所有外键。

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

参数

key
IConventionKey

要为其查找外键的键。

返回

引用给定键的外键。

适用于