Condividi tramite


MutableEntityTypeExtensions.FindProperty Metodo

Definizione

Ottiene una proprietà nel tipo di entità specificato. Restituisce null se non viene trovata alcuna proprietà.

Questa API trova solo proprietà scalari e non trova le proprietà di spostamento. Usare FindNavigation(IMutableEntityType, MemberInfo) per trovare una proprietà di spostamento.

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

Parametri

entityType
IMutableEntityType

Tipo di entità.

propertyInfo
PropertyInfo

Proprietà nella classe di entità.

Restituisce

Proprietà o null se non viene trovata alcuna proprietà.

Si applica a