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 如果未找到索引,则为 。

适用于