Share via


EntityTypeExtensions.FindForeignKeys Método

Definição

Sobrecargas

FindForeignKeys(IEntityType, IProperty)

Obtém as chaves estrangeiras definidas na propriedade fornecida. Somente chaves estrangeiras definidas exatamente na propriedade especificada são retornadas. Chaves estrangeiras compostas que incluem a propriedade especificada não são retornadas.

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Obtém as chaves estrangeiras definidas nas propriedades fornecidas. Somente chaves estrangeiras definidas exatamente no conjunto de propriedades especificado são retornadas.

FindForeignKeys(IEntityType, IProperty)

Obtém as chaves estrangeiras definidas na propriedade fornecida. Somente chaves estrangeiras definidas exatamente na propriedade especificada são retornadas. Chaves estrangeiras compostas que incluem a propriedade especificada não são retornadas.

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)

Parâmetros

entityType
IEntityType

O tipo de entidade.

property
IProperty

A propriedade na qual encontrar as chaves estrangeiras.

Retornos

As chaves estrangeiras.

Aplica-se a

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

Obtém as chaves estrangeiras definidas nas propriedades fornecidas. Somente chaves estrangeiras definidas exatamente no conjunto de propriedades especificado são retornadas.

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)

Parâmetros

entityType
IEntityType

O tipo de entidade.

properties
IReadOnlyList<IProperty>

As propriedades em que encontrar as chaves estrangeiras.

Retornos

As chaves estrangeiras.

Atributos

Aplica-se a