语言

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

要检查的属性。

返回

如果属性用作索引,则为 ;否则 为 。

特性

适用于