语言

RuntimeProperty.IReadOnlyProperty.IsIndex 方法

定义

获取一个值,该值指示此属性是用作索引(还是复合索引的一部分)。

[System.Diagnostics.DebuggerStepThrough]
bool IReadOnlyProperty.IsIndex();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsIndex : unit -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsIndex : unit -> bool
Function IsIndex () As Boolean Implements IReadOnlyProperty.IsIndex

返回

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

实现

特性

适用于