Sys.Data.AdoNetServiceProxy.replaceOnUpdate Property

Gets or sets a value that indicates whether original values are replaced, including those without new values from an update operation.

get_replaceOnUpdate: function()
set_replaceOnUpdate: function(value)

Usage

var a = exampleDataService.get_replaceOnUpdate();
exampleDataService.set_replaceOnUpdate(value);

Return Value

true if the all the original values are replaced, false if original values that are not specified are retained. The default value is false.

Remarks

You use the replaceOnUpdate property to indicate how unspecified values are handled during update operations. When you set the replaceOnUpdate property to true, all of the original values are replaced by either a new value from the update operation, or by a default value if a new value is not specified. When you set the replaceOnUpdate property to false, original values that are not specified in the update operation are retained when you save the new, specified values.

When you set the replaceOnUpdate property to true, the PUT verb is used for update operations. When you set the replaceOnUpdate property to false, the MERGE verb is used.

See Also

Other Resources

Sys.Data.AdoNetServiceProxy Class