IConventionPropertyBaseBuilder<TBuilder>.UsePropertyAccessMode Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la PropertyAccessMode valeur à utiliser pour cet objet de type propriété.
public TBuilder? UsePropertyAccessMode(Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member UsePropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> 'Builder
Public Function UsePropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As TBuilder
Paramètres
- propertyAccessMode
- Nullable<PropertyAccessMode>
À PropertyAccessMode utiliser pour cet objet de type propriété.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
La même instance de générateur si la configuration a été appliquée, null sinon.