IConventionEntityType.RemoveIndex 方法

定義

多載

RemoveIndex(IConventionIndex)

從這個實體類型移除索引。

RemoveIndex(IReadOnlyIndex)

從這個實體類型移除索引。

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

從這個實體類型移除索引。

RemoveIndex(IConventionIndex)

從這個實體類型移除索引。

public void RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index);
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex -> unit
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Sub RemoveIndex (index As IConventionIndex)
Public Function RemoveIndex (index As IConventionIndex) As IConventionIndex

參數

index
IConventionIndex

要移除的索引。

傳回

移除的索引。

適用於

RemoveIndex(IReadOnlyIndex)

從這個實體類型移除索引。

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index);
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function RemoveIndex (index As IReadOnlyIndex) As IConventionIndex

參數

index
IReadOnlyIndex

要移除的索引。

傳回

移除的索引,如果找不到索引,則 null 為 。

適用於

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

從這個實體類型移除索引。

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? RemoveIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member RemoveIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function RemoveIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IConventionIndex

參數

properties
IReadOnlyList<IReadOnlyProperty>

組成索引的屬性。

傳回

已移除的索引。

適用於