RelationalForeignKeyExtensions.GetMappedConstraints(IForeignKey) 方法

定义

获取外键映射到的外键约束。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint> GetMappedConstraints (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetMappedConstraints : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint>
<Extension()>
Public Function GetMappedConstraints (foreignKey As IForeignKey) As IEnumerable(Of IForeignKeyConstraint)

参数

foreignKey
IForeignKey

外键。

返回

外键映射到的外键约束。

适用于