語言

PropertyExtensions.IsUniqueIndex(IProperty) 方法

定義

警告

Use IReadOnlyProperty.IsUniqueIndex

會獲得一個值,表示此屬性是否被用作唯一指數(或是唯一綜合指數的一部分)。

public static bool IsUniqueIndex(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.IsUniqueIndex")]
public static bool IsUniqueIndex(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member IsUniqueIndex : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
[<System.Obsolete("Use IReadOnlyProperty.IsUniqueIndex")>]
static member IsUniqueIndex : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
<Extension()>
Public Function IsUniqueIndex (property As IProperty) As Boolean

參數

property
IProperty

該物業值得檢查。

傳回

true 如果該屬性被用作唯一索引,否則 false。

屬性

適用於