IMutableModel.SetPropertyAccessMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework