MutableEntityTypeExtensions.SetPropertyAccessMode Method

Definition

Overloads

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for properties of this entity type.

Note that individual properties can override this access mode. The value set here will be used for any property for which no override has been specified.

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for properties and navigations of this entity type.

Note that individual properties and navigations can override this access mode. The value set here will be used for any property or navigation for which no override has been specified.

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for properties of this entity type.

Note that individual properties can override this access mode. The value set here will be used for any property for which no override has been specified.

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableEntityType, propertyAccessMode As Nullable(Of PropertyAccessMode))

Parameters

entityType
IMutableEntityType

The entity type for which to set the access mode.

propertyAccessMode
Nullable<PropertyAccessMode>

The PropertyAccessMode, or null to clear the mode set.

Applies to

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for properties and navigations of this entity type.

Note that individual properties and navigations can override this access mode. The value set here will be used for any property or navigation for which no override has been specified.

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableEntityType, propertyAccessMode As Nullable(Of PropertyAccessMode))

Parameters

entityType
IMutableEntityType

The entity type for which to set the access mode.

propertyAccessMode
Nullable<PropertyAccessMode>

The PropertyAccessMode, or null to clear the mode set.

Applies to