語言

PropertyExtensions.IsIndex(IProperty) 方法

定義

警告

Use IReadOnlyProperty.IsIndex

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

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

參數

property
IProperty

該物業值得檢查。

傳回

true 若該性質被用作指標,否則 false。

屬性

適用於