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