0 out of 3 rated this helpful - Rate this topic

MergeOption Enumeration

Determines the synchronization option for sending or receiving entities to or from WCF Data Services. 

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)
public enum MergeOption
Member name Description
AppendOnly Append 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.
OverwriteChanges All current values on the client are overwritten with current values from the data service regardless of whether they have been changed on the client.
PreserveChanges Current values that have been changed on the client are not modified, but any unchanged values are updated with current values from the data service. No client-side changes are lost in this merge.
NoTracking Objects are always loaded from persisted storage. 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 data service. The default value is MergeOption.AppendOnly.

.NET Framework

Supported in: 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ