IMutableEntityType.RemoveIndex 方法

定義

多載

RemoveIndex(IMutableIndex)

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

RemoveIndex(IReadOnlyIndex)

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

RemoveIndex(IReadOnlyList<IProperty>)

從這個實體移除索引。

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

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

RemoveIndex(IMutableIndex)

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

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

參數

index
IMutableIndex

要移除的索引。

傳回

移除的索引。

適用於

RemoveIndex(IReadOnlyIndex)

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

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

參數

index
IReadOnlyIndex

要移除的索引。

傳回

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

適用於

RemoveIndex(IReadOnlyList<IProperty>)

從這個實體移除索引。

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

參數

properties
IReadOnlyList<IProperty>

組成索引的屬性。

傳回

已移除的索引。

適用於

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

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

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

參數

properties
IReadOnlyList<IReadOnlyProperty>

組成索引的屬性。

傳回

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

適用於