DbPropertyValues.SetValues Method

 

Sets the values of this dictionary by reading values from another dictionary.

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

NameDescription
System_CAPS_pubmethodSetValues(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.

System_CAPS_pubmethodSetValues(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).


DbPropertyValues.SetValues Method (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 void SetValues(
	DbPropertyValues propertyValues
)

Parameters

propertyValues
Type: System.Data.Entity.Infrastructure.DbPropertyValues

The dictionary to read values from.


DbPropertyValues.SetValues Method (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).

[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", 
	MessageId = "obj", Justification = "Naming is intentional.")]
public void SetValues(
	object obj
)

Parameters

obj
Type: System.Object

The object to read values from.