The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ObjectContext::ApplyPropertyChanges Method (String^, Object^)
Entity Framework 6.0
Note: This API is now obsolete.Namespace:
System.Data.Entity.Core.Objects
Assembly: EntityFramework (in EntityFramework.dll)
Return to top
Applies property changes from a detached object to an object already attached to the object context.
Assembly: EntityFramework (in EntityFramework.dll)
public: [ObsoleteAttribute("Use ApplyCurrentValues instead")] [EditorBrowsableAttribute(EditorBrowsableState::Never)] [BrowsableAttribute(false)] virtual void ApplyPropertyChanges( String^ entitySetName, Object^ changed )
Parameters
- entitySetName
-
Type:
System::String^
The name of the entity set to which the object belongs.
- changed
-
Type:
System::Object^
The detached object that has property updates to apply to the original object.
| Exception | Condition |
|---|---|
| ArgumentNullException | When entitySetName is null or an empty string or when changed is null. |
| InvalidOperationException | |
| ArgumentException | When the type of the changed object is not the same type as the original object. |
Show: