IEntityType.FindKey メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
FindKey(IReadOnlyProperty) |
指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに |
FindKey(IReadOnlyList<IProperty>) |
指定したプロパティで定義されている主キーまたは代替キーを取得します。
指定されたプロパティに |
FindKey(IReadOnlyList<IReadOnlyProperty>) |
指定したプロパティで定義されている主キーまたは代替キーを取得します。
指定されたプロパティに |
FindKey(IReadOnlyProperty)
指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに null
対してキーが定義されていない場合は を返します。
public virtual Microsoft.EntityFrameworkCore.Metadata.IKey? FindKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
override this.FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
Public Overridable Function FindKey (property As IReadOnlyProperty) As IKey
パラメーター
- property
- IReadOnlyProperty
キーが定義されているプロパティ。
戻り値
キー。定義されていない場合は null。
適用対象
FindKey(IReadOnlyList<IProperty>)
指定したプロパティで定義されている主キーまたは代替キーを取得します。
指定されたプロパティに null
対してキーが定義されていない場合は を返します。
public Microsoft.EntityFrameworkCore.Metadata.IKey FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IKey
Public Function FindKey (properties As IReadOnlyList(Of IProperty)) As IKey
パラメーター
- properties
- IReadOnlyList<IProperty>
キーを構成するプロパティ。
戻り値
キー。定義 null
されていない場合は 。
適用対象
FindKey(IReadOnlyList<IReadOnlyProperty>)
指定したプロパティで定義されている主キーまたは代替キーを取得します。
指定されたプロパティに null
対してキーが定義されていない場合は を返します。
public Microsoft.EntityFrameworkCore.Metadata.IKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IKey
Public Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IKey
パラメーター
- properties
- IReadOnlyList<IReadOnlyProperty>
キーを構成するプロパティ。
戻り値
キー。定義 null
されていない場合は 。
適用対象
Entity Framework