A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.data.services.client.mergeoption below:

MergeOption Enum (System.Data.Services.Client) | Microsoft Learn

MergeOption Enum Definition

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

public enum class MergeOption
public enum MergeOption
type MergeOption = 
Public Enum MergeOption
Inheritance
Fields Name Value Description AppendOnly 0

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 1

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 2

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 3

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.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4