Delen via


MutablePropertyBaseExtensions Class

Definition

Caution

Use IMutablePropertyBase

Extension methods for IMutablePropertyBase.

public static class MutablePropertyBaseExtensions
[System.Obsolete("Use IMutablePropertyBase")]
public static class MutablePropertyBaseExtensions
type MutablePropertyBaseExtensions = class
[<System.Obsolete("Use IMutablePropertyBase")>]
type MutablePropertyBaseExtensions = class
Public Module MutablePropertyBaseExtensions
Public Class MutablePropertyBaseExtensions
Inheritance
MutablePropertyBaseExtensions
Attributes

Methods

SetField(IMutablePropertyBase, String)

Sets the underlying CLR field that this property should use.

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>).

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for this property.

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

Sets the PropertyAccessMode to use for this property.

Applies to