Export (0) Print
Expand All

DbPropertyValues Class

Entity Framework 5.0

A collection of all the properties for an underlying entity or complex object.

System.Object
  System.Data.Entity.Infrastructure.DbPropertyValues

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public class DbPropertyValues

The DbPropertyValues type exposes the following members.

  NameDescription
Public propertyItemGets or sets the value of the property with the specified property name. The value may be a nested instance of this class.
Public propertyPropertyNamesGets the set of names of all properties in this dictionary as a read-only set.
Top

  NameDescription
Public methodCloneCreates 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.
Public methodEqualsReturns whether the specified value is equal to the current value. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified value. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type for the current value.
Public methodGetValue<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.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetValues(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).
Public methodSetValues(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.
Public methodToObjectCreates an object of the underlying type for this dictionary and hydrates it with property values from this dictionary.
Public methodToStringReturns a string representation of the database property values. (Overrides Object.ToString().)
Top

An instance of this class can be converted to an instance of the generic class by 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.
Show:
© 2014 Microsoft