Share via


ConventionEntityTypeExtensions.FindDeclaredForeignKeys Método

Definição

Obtém as chaves estrangeiras declaradas no determinado IConventionEntityType usando as propriedades fornecidas.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> FindDeclaredForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
static member FindDeclaredForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
<Extension()>
Public Function FindDeclaredForeignKeys (entityType As IConventionEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IConventionForeignKey)

Parâmetros

entityType
IConventionEntityType

O tipo de entidade.

properties
IReadOnlyList<IProperty>

As propriedades nas quais localizar as chaves estrangeiras.

Retornos

Chaves estrangeiras declaradas.

Aplica-se a