Share via


DbPropertyValues.SetValues Method

Definition

Overloads

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

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.

public void SetValues (System.Data.Entity.Infrastructure.DbPropertyValues propertyValues);
member this.SetValues : System.Data.Entity.Infrastructure.DbPropertyValues -> unit
Public Sub SetValues (propertyValues As DbPropertyValues)

Parameters

propertyValues
DbPropertyValues

The dictionary to read values from.

Applies to

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Justification="Naming is intentional.", MessageId="obj")]
public void SetValues (object obj);
member this.SetValues : obj -> unit
Public Sub SetValues (obj As Object)

Parameters

obj
Object

The object to read values from.

Attributes

Applies to