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>

构成索引的属性。

返回

已删除的索引。

适用于