共用方式為


DatabaseTable.UniqueConstraints 屬性

定義

資料表上定義的唯一條件約束清單。

public virtual System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseUniqueConstraint> UniqueConstraints { get; }
member this.UniqueConstraints : System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Scaffolding.Metadata.DatabaseUniqueConstraint>
Public Overridable ReadOnly Property UniqueConstraints As IList(Of DatabaseUniqueConstraint)

屬性值

適用於