共用方式為


RuntimeEntityType.IReadOnlyEntityType.FindIndex 方法

定義

多載

IReadOnlyEntityType.FindIndex(String)

取得具有指定名稱的索引。 如果不存在這類索引,則傳 null 回 。

IReadOnlyEntityType.FindIndex(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的未命名索引。 如果未定義這類索引,則傳 null 回 。

IReadOnlyEntityType.FindIndex(String)

取得具有指定名稱的索引。 如果不存在這類索引,則傳 null 回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? IReadOnlyEntityType.FindIndex (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex IReadOnlyEntityType.FindIndex (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Function FindIndex (name As String) As IReadOnlyIndex Implements IReadOnlyEntityType.FindIndex

參數

name
String

要尋找的索引名稱。

傳回

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

實作

屬性

適用於

IReadOnlyEntityType.FindIndex(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的未命名索引。 如果未定義這類索引,則傳 null 回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? IReadOnlyEntityType.FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex IReadOnlyEntityType.FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IReadOnlyIndex Implements IReadOnlyEntityType.FindIndex

參數

properties
IReadOnlyList<IReadOnlyProperty>

要尋找索引的屬性。

傳回

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

實作

屬性

適用於