IConventionEntityTypeBuilder.CanRemoveIndex(IConventionIndex, Boolean) 方法

定义

返回一个值,该值指示是否可以从此实体类型中删除索引。

public bool CanRemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, bool fromDataAnnotation = false);
abstract member CanRemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * bool -> bool
Public Function CanRemoveIndex (index As IConventionIndex, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

index
IConventionIndex

要删除的索引。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

true 如果实体类型可以标记为无键,则为 。

适用于