次の方法で共有


RuntimeEntityType.IReadOnlyEntityType.FindKey メソッド

定義

指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに null 対してキーが定義されていない場合は を返します。

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

パラメーター

properties
IReadOnlyList<IReadOnlyProperty>

キーを構成するプロパティ。

戻り値

キー。定義 null されていない場合は 。

実装

属性

適用対象