共用方式為


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

索引鍵。

傳回

索引鍵對應的唯一條件約束。

適用於