Model Builder. Use Property Access Mode(Nullable<PropertyAccessMode>, Boolean) Method
Sets the PropertyAccessMode to use for all properties of this entity type.
By default, the backing field, if one is found by convention or has been specified, is used when new objects are constructed, typically when entities are queried from the database. Properties are used for all other accesses. Calling this method will change that behavior for all properties in the model as described in the PropertyAccessMode enum.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder UsePropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member UsePropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
Public Function UsePropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder
The PropertyAccessMode to use for properties of this model.
Indicates whether the configuration was specified using a data annotation.
The same builder instance if the configuration was successful,