MutableEntityTypeExtensions.FindProperty Methode

Definition

Ruft eine Eigenschaft für den angegebenen Entitätstyp ab. Gibt zurück null , wenn keine Eigenschaft gefunden wurde.

Diese API findet nur skalare Eigenschaften und keine Navigationseigenschaften. Verwenden Sie FindNavigation(IMutableEntityType, MemberInfo) , um nach einer Navigationseigenschaft zu suchen.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function FindProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

propertyInfo
PropertyInfo

Die Eigenschaft für die Entitätsklasse.

Gibt zurück

Die Eigenschaft, oder null , wenn keine gefunden wurde.

Gilt für: