PropertyExtensions.IsIndex(IProperty) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
要检查的属性。
返回
- 特性