MutableKeyExtensions.GetReferencingForeignKeys(IMutableKey) 方法

定义

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

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

参数

key
IMutableKey

要为其查找外键的键。

返回

引用给定键的外键。

适用于