[This is preliminary documentation and is subject to change.]
public ExecutionResult Commit()
This Execution may not be the base Execution, and the ExecutionContext may not be Viewer. To commit modifications in these cases, use the appropriate derived Session.Commit method.
This will commit any object creations, modifications, deletions and link changes performed during this Execution. This also includes any modifications which may have been transferred from other Executions called from this one.
Link changes happen when you set or remove a persistent object as a single member (associated or not) of another persistent object, and when you add or remove a persistent object from a collection (associated or not) of persistent objects. Note that this does not affect any objects which you have not yet attached to the persistent object tree.
|InvalidOperationException||Thrown if the ExecutionContext
is Viewer or if this is the base Execution.|