DbPropertyValues 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.
A collection of all the properties for an underlying entity or complex object.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbPropertyValues
public class DbPropertyValues
type DbPropertyValues = class
Public Class DbPropertyValues
- Inheritance
-
DbPropertyValues
- Attributes
Remarks
An instance of this class can be converted to an instance of the generic class using the Cast method. Complex properties in the underlying entity or complex object are represented in the property values as nested instances of this class.
Properties
Item[String] |
Gets or sets the value of the property with the specified property name. The value may be a nested instance of this class. |
PropertyNames |
Gets the set of names of all properties in this dictionary as a read-only set. |
Methods
Clone() |
Creates a new dictionary containing copies of all the properties in this dictionary. Changes made to the new dictionary will not be reflected in this dictionary and vice versa. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
GetType() |
Gets the Type of the current instance. |
GetValue<TValue>(String) |
Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter. This is useful especially with nested dictionaries to avoid writing expressions with lots of casts. |
SetValues(DbPropertyValues) |
Sets the values of this dictionary by reading values from another dictionary. The other dictionary must be based on the same type as this dictionary, or a type derived from the type for this dictionary. |
SetValues(Object) |
Sets the values of this dictionary by reading values out of the given object. The given object can be of any type. Any property on the object with a name that matches a property name in the dictionary and can be read will be read. Other properties will be ignored. This allows, for example, copying of properties from simple Data Transfer Objects (DTOs). |
ToObject() |
Creates an object of the underlying type for this dictionary and hydrates it with property values from this dictionary. |
ToString() | Returns a string that represents the current object. |
Applies to
Entity Framework