语言

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

要检查的属性。

返回

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

特性

适用于