SaveOptions Class
A SaveOptions instance is used to specify the 'options' under which a save will occur.
Item Index
Methods
Properties
Methods
<ctor> SaveOptions
-
config
Parameters:
-
config
Object-
[allowConcurrentSaves]
Boolean optionalWhether multiple saves can be in-flight at the same time. The default is false.
-
[resourceName]
String optionalResource name to be used during the save - this defaults to "SaveChanges"
-
[dataService]
DataService optionalThe DataService to be used for this save.
-
[tag]
Object optionalFree form value that will be sent to the server during the save.
-
setAsDefault
()
chainable
Sets the 'defaultInstance' by creating a copy of the current 'defaultInstance' and then applying all of the properties of the current instance. The current instance is returned unchanged.
using
-
config
Returns a copy of this SaveOptions with the specified config options applied.
Parameters:
-
config
Configuration Object |The object to apply to create a new SaveOptions.
-
[allowConcurrentSaves]
Boolean optionalWhether multiple saves can be in-flight at the same time. The default is false.
-
[resourceName]
String optionalResource name to be used during the save - this defaults to "SaveChanges"
-
[dataService]
DataService optionalThe DataService to be used for this save.
-
[tag]
Object optionalFree form value that will be sent to the server during the save.
-
Example:
var saveOptions = em1.saveOptions.using( {resourceName: "anotherResource" });
Properties
allowConcurrentSaves
Boolean
Whether another save can be occuring at the same time as this one - default is false.
readOnly
resourceName
String
The resource name to call to perform the save. readOnly
tag
Object
A free form value that will be sent to the server.
readOnly