MutablePropertyBaseExtensions MutablePropertyBaseExtensions Class

Extension methods for IMutablePropertyBase.

Syntax

Declaration

public static class MutablePropertyBaseExtensionsPublic Module MutablePropertyBaseExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • MutablePropertyBaseExtensions
    MutablePropertyBaseExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Sets the backing field to use for this property.

Backing fields are normally found by convention as described here: http://go.microsoft.com/fwlink/?LinkId=723277. This method is useful for setting backing fields explicitly in cases where the correct field is not found by convention.

By default, the backing field, if one is found or has been specified, is used when new objects are constructed, typically when entities are queried from the database. Properties are used for all other accesses. This can be changed by calling SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>).

Sets the PropertyAccessMode to use for this property.

Methods

  • SetField(IMutablePropertyBase, String)
    SetField(IMutablePropertyBase, String)

    Sets the backing field to use for this property.

    Backing fields are normally found by convention as described here: http://go.microsoft.com/fwlink/?LinkId=723277. This method is useful for setting backing fields explicitly in cases where the correct field is not found by convention.

    By default, the backing field, if one is found or has been specified, is used when new objects are constructed, typically when entities are queried from the database. Properties are used for all other accesses. This can be changed by calling SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>).

    public static void SetField(this IMutablePropertyBase property, string fieldName)<ExtensionAttribute>
    Public Shared Sub SetField(property As IMutablePropertyBase, fieldName As String)

    Parameters

  • SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)
    SetPropertyAccessMode(IMutablePropertyBase, Nullable(Of PropertyAccessMode))

    Sets the PropertyAccessMode to use for this property.

    public static void SetPropertyAccessMode(this IMutablePropertyBase property, PropertyAccessMode? propertyAccessMode)<ExtensionAttribute>
    Public Shared Sub SetPropertyAccessMode(property As IMutablePropertyBase, propertyAccessMode As PropertyAccessMode?)

    Parameters

Details

Assembly

Microsoft.EntityFrameworkCore.dll