Share via


DataServiceContext.MergeOption Property

Definition

Gets or sets the synchronization option for receiving entities from a data service.

public virtual Microsoft.OData.Client.MergeOption MergeOption { get; set; }
member this.MergeOption : Microsoft.OData.Client.MergeOption with get, set
Public Overridable Property MergeOption As MergeOption

Property Value

One of the members of the MergeOption enumeration.

Remarks

Used to specify a synchronization strategy when sending/receiving entities to/from a data service. This value is read by the deserialization component of the client prior to materializing objects. As such, it is recommended to set this property to the appropriate materialization strategy before executing any queries/updates to the data service. The default value is MergeOption.AppendOnly.

Applies to