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

要檢查的屬性。

傳回

true 如果屬性做為唯一索引,則為 ,否則 false 為 。

屬性

適用於