EntityTypeExtensions.FindForeignKeys Méthode

Définition

Surcharges

FindForeignKeys(IEntityType, IProperty)

Obtient les clés étrangères définies sur la propriété donnée. Seules les clés étrangères définies sur la propriété spécifiée sont retournées. Les clés étrangères composites qui incluent la propriété spécifiée ne sont pas retournées.

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Obtient les clés étrangères définies sur les propriétés données. Seules les clés étrangères définies sur l’ensemble de propriétés spécifié sont retournées.

FindForeignKeys(IEntityType, IProperty)

Obtient les clés étrangères définies sur la propriété donnée. Seules les clés étrangères définies sur la propriété spécifiée sont retournées. Les clés étrangères composites qui incluent la propriété spécifiée ne sont pas retournées.

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)

Paramètres

entityType
IEntityType

Type d'entité.

property
IProperty

Propriété sur laquelle rechercher les clés étrangères.

Retours

Clés étrangères.

S’applique à

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Obtient les clés étrangères définies sur les propriétés données. Seules les clés étrangères définies sur l’ensemble de propriétés spécifié sont retournées.

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)

Paramètres

entityType
IEntityType

Type d'entité.

properties
IReadOnlyList<IProperty>

Propriétés sur laquelle rechercher les clés étrangères.

Retours

Clés étrangères.

Attributs

S’applique à