次の方法で共有


EntityTypeExtensions.FindForeignKeys メソッド

定義

オーバーロード

FindForeignKeys(IEntityType, IProperty)

指定したプロパティで定義されている外部キーを取得します。 指定されたプロパティに対して定義されている外部キーのみが返されます。 指定したプロパティを含む複合外部キーは返されません。

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

指定されたプロパティで定義されている外部キーを取得します。 指定したプロパティ セットに対して定義されている外部キーのみが返されます。

FindForeignKeys(IEntityType, IProperty)

指定したプロパティで定義されている外部キーを取得します。 指定されたプロパティに対して定義されている外部キーのみが返されます。 指定したプロパティを含む複合外部キーは返されません。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
<Extension()>
Public Function FindForeignKeys (entityType As IEntityType, property As IProperty) As IEnumerable(Of IForeignKey)

パラメーター

entityType
IEntityType

エンティティの型。

property
IProperty

外部キーを検索するプロパティ。

戻り値

外部キー。

適用対象

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

指定されたプロパティで定義されている外部キーを取得します。 指定したプロパティ セットに対して定義されている外部キーのみが返されます。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__8))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__27))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__8))>]
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.EntityTypeExtensions+<FindForeignKeys>d__27))>]
static member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
<Extension()>
Public Function FindForeignKeys (entityType As IEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IForeignKey)
<Extension()>
Public Iterator Function FindForeignKeys (entityType As IEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IForeignKey)

パラメーター

entityType
IEntityType

エンティティの型。

properties
IReadOnlyList<IProperty>

外部キーを検索するプロパティ。

戻り値

外部キー。

属性

適用対象