ObjectContext.ApplyPropertyChanges Method (String, Object)
Applies property changes from a detached object to an object already attached to the object context.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
[BrowsableAttribute(false)] [ObsoleteAttribute("Use ApplyCurrentValues instead")] public void ApplyPropertyChanges( string entitySetName, object changed )
When entitySetName is null or an empty string.
When changed is null.
When the type of the changed object is not the same type as the original object.
The ApplyCurrentValues<TEntity> method is used to apply property changes from a modified, detached version of an object to the original version attached to the ObjectContext. This supports scenarios, such as Web services, where an entity object is detached and sent to a remote application where property updates are made. This method enables you to more easily apply these changes back to the original object.
ApplyCurrentValues<TEntity> does not affect navigation properties or related objects.
ApplyCurrentValues<TEntity> only sets properties that exist in the entity metadata for the type. For example, properties that are added in a partial class are not included in the ApplyCurrentValues<TEntity> operation.
Available since 3.5