DbPropertyValues Class
Entity Framework 5.0
A collection of all the properties for an underlying entity or complex object.
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
The DbPropertyValues type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Item | 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 | Returns whether the specified value is equal to the current value. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Returns the hash function for the specified value. (Overrides Object.GetHashCode.) |
![]() | GetType | Gets the type for the current value. |
![]() | GetValue(Of TValue) | 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(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, copying of properties from simple Data Transfer Objects (DTOs). |
![]() | 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. |
![]() | 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 the database property values. (Overrides Object.ToString.) |
Show:
