Partager via


ConventionEntityTypeExtensions.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.IConventionProperty> FindProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<string> propertyNames);
static member FindProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
<Extension()>
Public Function FindProperties (entityType As IConventionEntityType, propertyNames As IReadOnlyList(Of String)) As IReadOnlyList(Of IConventionProperty)

Paramètres

entityType
IConventionEntityType

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 à