PropertyBaseExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for IReadOnlyPropertyBase.
public static class PropertyBaseExtensions
type PropertyBaseExtensions = class
Public Module PropertyBaseExtensions
- Inheritance
-
PropertyBaseExtensions
Methods
Format(IEnumerable<IReadOnlyPropertyBase>, Boolean) |
Creates a formatted string representation of the given properties such as is useful when throwing exceptions about keys, indexes, etc. that use the properties. |
GetCurrentValueComparer(IPropertyBase) |
Gets a IComparer<T> for comparing values in tracked IUpdateEntry entries. |
GetFieldName(IPropertyBase) |
Gets the name of the backing field for this property, or |
GetGetter(IPropertyBase) |
Gets a IClrPropertyGetter for reading the value of this property. Note that it is an error to call this method for a shadow property (IsShadowProperty(IPropertyBase)) since such a property has no associated MemberInfo. |
GetIndex(IPropertyBase) |
Gets the property index for this property. |
GetMemberInfo(IPropertyBase, Boolean, Boolean) |
Gets the PropertyInfo or FieldInfo that should be used to get or set a value for the given property. Note that it is an error to call this method for a shadow property (IsShadowProperty(IPropertyBase)) since such a property has no associated MemberInfo. |
GetPropertyAccessMode(IPropertyBase) |
Gets the PropertyAccessMode being used for this property.
|
IsIndexerProperty(IPropertyBase) |
Gets a value indicating whether this is an indexer property. An indexer property is one that is accessed through an indexer on the entity class. |
IsShadowProperty(IPropertyBase) |
Obsolete.
Gets a value indicating whether this is a shadow property. A shadow property is one that does not have a corresponding property in the entity class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the entity class. |
Applies to
Entity Framework