共用方式為


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 如果實體類型可以標示為無索引鍵,則為 。

適用於