This documentation is archived and is not being maintained.

MergeOption Enumeration

Determines the synchronization option for sending or receiving entities to or from a data service.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Public Enumeration MergeOption
Dim instance As MergeOption

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 data 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 data service. No client-side changes are lost in this merge.
NoTrackingObjects 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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1