DataServiceContext.SaveChangesDefaultOptions Property
Gets or sets the SaveChangesOptions values that are used by the SaveChanges method.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Property SaveChangesDefaultOptions As SaveChangesOptions
Get
Set
'Usage
Dim instance As DataServiceContext
Dim value As SaveChangesOptions
value = instance.SaveChangesDefaultOptions
instance.SaveChangesDefaultOptions = value
public SaveChangesOptions SaveChangesDefaultOptions { get; set; }
public:
property SaveChangesOptions SaveChangesDefaultOptions {
SaveChangesOptions get ();
void set (SaveChangesOptions value);
}
member SaveChangesDefaultOptions : SaveChangesOptions with get, set
function get SaveChangesDefaultOptions () : SaveChangesOptions
function set SaveChangesDefaultOptions (value : SaveChangesOptions)
Property Value
Type: System.Data.Services.Client.SaveChangesOptions
The current options for the save changes operation.
Remarks
This property is provided so that options such as merge and replace semantics can be set one time for the DataServiceContext and then overridden as needed by calling one of the SaveChanges overloads.