DbPropertyValues Class
A collection of all the properties for an underlying entity or complex object.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
Name | Description | |
---|---|---|
![]() | 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) | Specifies whether the DbPropertyValues is equal to a specific object.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Gets the hash code associated with the property value.(Overrides Object.GetHashCode().) |
![]() | 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. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | 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 representation of DbPropertyValues.(Overrides Object.ToString().) |
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.