IReadOnlyModel.GetPropertyAccessMode Method

Definition

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

C#
[System.Diagnostics.DebuggerStepThrough]
public Microsoft.EntityFrameworkCore.PropertyAccessMode GetPropertyAccessMode ();

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

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0