Partager via


IConventionEntityType.FindServiceProperty(String) Méthode

Définition

Obtient la propriété de service avec un nom donné. Retourne null si aucune propriété portant le nom donné n’est définie.

public Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty FindServiceProperty (string name);
public Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty? FindServiceProperty (string name);
abstract member FindServiceProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty
Public Function FindServiceProperty (name As String) As IConventionServiceProperty

Paramètres

name
String

Nom de la propriété de service.

Retours

Propriété de service ou null si aucune n’est trouvée.

Remarques

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

S’applique à