RelationalKeyExtensions.GetMappedConstraints(IKey) 方法

定义

获取键映射到的唯一约束。

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

参数

key
IKey

键。

返回

键映射到的唯一约束。

适用于