Share via


IReadOnlyModel.GetPropertyAccessMode Method

Definition

Gets the PropertyAccessMode being used for properties of entity types in this model.

[System.Diagnostics.DebuggerStepThrough]
public Microsoft.EntityFrameworkCore.PropertyAccessMode GetPropertyAccessMode ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member GetPropertyAccessMode : unit -> Microsoft.EntityFrameworkCore.PropertyAccessMode
Public Function GetPropertyAccessMode () As PropertyAccessMode

Returns

The access mode being used.

Attributes

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 returned here will be used for any property for which no override has been specified.

See Modeling entity types and relationships for more information and examples.

Applies to