EntityTypeExtensions.FindProperties Méthode

Définition

Recherche les propriétés correspondantes sur le type d’entité donné. Retourne null si une propriété est introuvable.

Cette API recherche uniquement les propriétés scalaires et ne trouve pas les propriétés de navigation.

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)

Paramètres

entityType
IEntityType

Type d'entité.

propertyNames
IReadOnlyList<String>

Nom des propriétés.

Retours

Propriétés, ou null si aucune propriété n’est trouvée.

S’applique à