All items flagged for deletion (via VolatileObjectDelete()) are deleted in the database.
Then all items that have been added to the in-memory list (via VolatileObjectAdd())
are added/saved to the database. If any of the objects implement IDatabaseObjectVolatile
then the IDatabaseObjectVolatile.Save function is called instead of the default
Database.ObjectSave() call. This allows the object to perform any additional
checking and validation.
IDatabaseObjectVolatile.Save is assumed to save itself to the database.
i.e. via a call to MyBase.Save().
Objects that do not implement IDatabaseObjectVolatile are still saved via the
Database.ObjectSave() function.
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
protected virtual void VolatileObjectsSave() |
Visual Basic |
---|
Protected Overridable Sub VolatileObjectsSave |
Visual C++ |
---|
protected: virtual void VolatileObjectsSave() |
Examples
CopyC#
Friend Sub SaveAll() Mybase.VolatileObjectsSave() End Sub