Share via


RuntimeEntityType.IEntityType.FindKey 方法

定義

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

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

參數

properties
IReadOnlyList<IReadOnlyProperty>

組成索引鍵的屬性。

傳回

索引鍵,如果 null 未定義則為 。

實作

屬性

適用於