Share via


ObjectSet<TEntity>.ApplyCurrentValues(TEntity) Method

Definition

Copies the scalar values from the supplied object into the object in the ObjectContext that has the same key.

public TEntity ApplyCurrentValues (TEntity currentEntity);
member this.ApplyCurrentValues : 'Entity -> 'Entity
Public Function ApplyCurrentValues (currentEntity As TEntity) As TEntity

Parameters

currentEntity
TEntity

The detached object that has property updates to apply to the original object. The entity key of currentEntity must match the EntityKey property of an entry in the ObjectContext .

Returns

TEntity

The updated object.

Applies to