This topic has not yet been rated - Rate this topic

MergeOption Enumeration

July 26, 2012

Determines the synchronization option for sending or receiving entities to or from an Open Data Protocol (OData) service.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)
public enum MergeOption
<object property="enumerationValue" .../>
Member nameDescription
AppendOnlyAppend new entities only. Existing entities or their original values will not be modified. No client-side changes are lost in this merge. This is the default behavior.
OverwriteChangesAll current values on the client are overwritten with current values from the Open Data Protocol (OData) service regardless of whether they have been changed on the client.
PreserveChangesCurrent values that have been changed on the client are not modified, but any unchanged values are updated with current values from the Open Data Protocol (OData) service. No client-side changes are lost in this merge.
NoTrackingObjects are always loaded from the data source. Any property changes made to objects in the object context are overwritten by the data source values.

This value is used when materializing objects. Set this property to the appropriate materialization option before executing any queries or updates to the OData service. The default value is MergeOption.AppendOnly.

Windows Phone OS

Supported in: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.