次の方法で共有


IMutableEntityType.FindForeignKey メソッド

定義

オーバーロード

FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

FindForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? FindForeignKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType principalEntityType);
abstract member FindForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
override this.FindForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Overridable Function FindForeignKey (property As IReadOnlyProperty, principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IMutableForeignKey

パラメーター

property
IReadOnlyProperty

外部キーが定義されているプロパティ。

principalKey
IReadOnlyKey

参照される主キーまたは代替キー。

principalEntityType
IReadOnlyEntityType

リレーションシップのターゲットであるエンティティ型。 これは、リレーションシップが principalKey 継承階層の派生型を対象とする場合に定義される型とは異なる場合があります (キーは階層の基本型で定義されているため)。

戻り値

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

適用対象

FindForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey FindForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IEntityType principalEntityType);
abstract member FindForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function FindForeignKey (properties As IReadOnlyList(Of IProperty), principalKey As IKey, principalEntityType As IEntityType) As IMutableForeignKey

パラメーター

properties
IReadOnlyList<IProperty>

外部キーが定義されているプロパティ。

principalKey
IKey

参照される主キーまたは代替キー。

principalEntityType
IEntityType

リレーションシップのターゲットであるエンティティ型。 これは、リレーションシップが principalKey 継承階層の派生型を対象とする場合に定義される型とは異なる場合があります (キーは階層の基本型で定義されているため)。

戻り値

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

適用対象

FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType)

指定された主キーまたは代替キーを指す、指定されたプロパティの外部キーを取得します。 null外部キーが見つからない場合は を返します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? FindForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType principalEntityType);
abstract member FindForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function FindForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IReadOnlyKey, principalEntityType As IReadOnlyEntityType) As IMutableForeignKey

パラメーター

properties
IReadOnlyList<IReadOnlyProperty>

外部キーが定義されているプロパティ。

principalKey
IReadOnlyKey

参照される主キーまたは代替キー。

principalEntityType
IReadOnlyEntityType

リレーションシップのターゲットであるエンティティ型。 これは、リレーションシップが principalKey 継承階層の派生型を対象とする場合に定義される型とは異なる場合があります (キーは階層の基本型で定義されているため)。

戻り値

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

適用対象