IMutableEntityType.FindIndex 方法

定义

重载

FindIndex(IReadOnlyProperty)

获取对给定属性定义的索引。 null如果未定义索引,则返回 。

FindIndex(IReadOnlyList<IProperty>)

获取在给定属性上定义的未命名索引。 null如果未定义此类索引,则返回 。

即使属性列表匹配,也不会返回命名索引。

FindIndex(IReadOnlyList<IReadOnlyProperty>)

获取在给定属性上定义的未命名索引。 null如果未定义此类索引,则返回 。

FindIndex(String)

获取具有给定名称的索引。 null如果不存在此类索引,则返回 。

FindIndex(IReadOnlyProperty)

获取对给定属性定义的索引。 null如果未定义索引,则返回 。

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IMutableIndex

参数

property
IReadOnlyProperty

要查找其索引的属性。

返回

索引;如果未找到任何索引, null 则为 。

适用于

FindIndex(IReadOnlyList<IProperty>)

获取在给定属性上定义的未命名索引。 null如果未定义此类索引,则返回 。

即使属性列表匹配,也不会返回命名索引。

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

参数

properties
IReadOnlyList<IProperty>

要查找索引的属性。

返回

索引;如果未找到任何索引, null 则为 。

适用于

FindIndex(IReadOnlyList<IReadOnlyProperty>)

获取在给定属性上定义的未命名索引。 null如果未定义此类索引,则返回 。

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

参数

properties
IReadOnlyList<IReadOnlyProperty>

要查找索引的属性。

返回

索引;如果未找到任何索引, null 则为 。

注解

即使属性列表匹配,也不会返回命名索引。

适用于

FindIndex(String)

获取具有给定名称的索引。 null如果不存在此类索引,则返回 。

public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex FindIndex (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function FindIndex (name As String) As IMutableIndex

参数

name
String

索引的名称。

返回

索引;如果未找到任何索引, null 则为 。

适用于