The Transaction object allows grouping of changes made to the store. It ensures that the changes made are atomic and consistent. It also keeps track of the actions performed so that they can be undone at a later stage.
public ref class Transaction : MarshalByRefObject, IDisposable
public class Transaction : MarshalByRefObject, IDisposable
type Transaction = class inherit MarshalByRefObject interface IDisposable
Public Class Transaction Inherits MarshalByRefObject Implements IDisposable
Returns this transaction's transaction context object
Return the Context instance that this Transaction is part of.
Get or set a flag that forces all inline rules to fire at LocalCommit time for the current transaction.
Returns true if changes have been made during this transaction
Indicates whether the commit time rules have been fired or not
Return this transaction's id.
Returns true if this transaction is beign rolled back
Return true if this transaction is active (started but not committed or rolled back). Return false otherwise.
Indicates that a transaction is hidden, and no rules will fire, and it will not go on the undo stack.
Indicates that a transaction is nested within another transaction
Indicates that the transaction is currently serializing
The Name property of this transaction.
return the parent of this transaction
Return partition state collection
Return this transactions sequence number
Return the Store instance that this Transaction is part of.
return a reference to the top level transaction that nests this transaction
Return the nesting depth of this transaction.
Commit the transaction - persist all the changes and notify listeners.
Disposes the state of this object.
Abort the transaction - rollback all the changes that have been made so far in this transaction.
Get the SerializationContext active in the context of the specified transaction. The SerializationContext is stored in the TranactionContext of serializing transactions. If the transaction is nested the transaction stack is searched to find the nearest enclosing serialization transaction with a SerializationContext.