Compartir a través de


EntityTypeExtensions.FindProperties Método

Definición

Busca propiedades coincidentes en el tipo de entidad especificado. Devuelve null si no se encuentra ninguna propiedad.

Esta API solo busca propiedades escalares y no encuentra propiedades de navegación.

public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> FindProperties (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyList<string> propertyNames);
static member FindProperties : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyList<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty>
<Extension()>
Public Function FindProperties (entityType As IEntityType, propertyNames As IReadOnlyList(Of String)) As IReadOnlyList(Of IProperty)

Parámetros

entityType
IEntityType

El tipo de entidad.

propertyNames
IReadOnlyList<String>

Los nombres de propiedad.

Devoluciones

Propiedades o null si no se encuentra ninguna propiedad.

Se aplica a