共用方式為


RuntimeEntityType.FindKey(IReadOnlyList<IReadOnlyProperty>) 方法

定義

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

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As RuntimeKey

參數

properties
IReadOnlyList<IReadOnlyProperty>

組成索引鍵的屬性。

傳回

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

適用於