Delen via


IMutableModel.SetPropertyAccessMode Method

Definition

Sets the PropertyAccessMode to use for properties of all entity types in this model.

public void SetPropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
abstract member SetPropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
Public Sub SetPropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode))

Parameters

propertyAccessMode
Nullable<PropertyAccessMode>

The PropertyAccessMode, or null to clear the mode set.

Remarks

Note that individual entity types can override this access mode, and individual properties of entity types can override the access mode set on the entity type. The value set here will be used for any property for which no override has been specified.

Applies to