Share via


IConventionPropertyBaseBuilder<TBuilder>.UsePropertyAccessMode Method

Definition

Sets the PropertyAccessMode to use for this property-like object.

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

Parameters

propertyAccessMode
Nullable<PropertyAccessMode>

The PropertyAccessMode to use for this property-like object.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

TBuilder

The same builder instance if the configuration was applied, null otherwise.

Applies to