Share via


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 されていない場合は 。

適用対象