Click or drag to resize
CMSTransactionScope Class
Transaction scope. Ensures that all queries run within single transaction.
Inheritance Hierarchy
SystemObject
  CMS.BaseDisposableObject
    CMS.HelpersTrackableCMSTransactionScope
      CMS.DataEngineCMSTransactionScope

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax
C#
public class CMSTransactionScope : Trackable<CMSTransactionScope>, 
	ITransactionScope, IDisposable, INotCopyThreadItem

The CMSTransactionScope type exposes the following members.

Constructors
  NameDescription
Public methodCMSTransactionScope
Constructor. Opens the connection and begins the transaction.
Top
Fields
  NameDescription
Protected fieldmCloseConnection
This scope closes the connection.
Protected fieldmCommitTransaction
This scope commits the transaction.
Protected fieldmConnectionScope
Inner connection scope.
Protected fieldmRollbackTransaction
This scope should rollback the transaction in case of errors.
Protected fieldmTransactionScope
Transaction scope.
Protected fieldStatic membermUseTransactionScope
If true, .NET transaction scope is used instead of standard transactions.
Top
Properties
  NameDescription
Public propertyConnection
Connection of the current scope.
Public propertyStatic memberIsInTransaction
Returns true if the current code executes in a scope of open transaction
Public propertyStatic memberUseTransactionScope
If true, .NET transaction scope is used instead of standard transactions.
Top
Methods
  NameDescription
Public methodCallOnDispose
Adds the given action to the list of actions called when the handler object is disposed
(Inherited from DisposableObject.)
Public methodCommit
Commits the transaction (does the same as Complete).
Public methodCommitAndBeginNew
Commits current transaction and begins new transaction.
Public methodStatic memberCommitRequestScope
Commits the current transaction scope.
Public methodComplete
Completes the transaction (does the same as Commit).
Public methodDispose
Disposes the object.
(Overrides DisposableObjectDispose.)
Public methodStatic memberDisposeRequestScope
Disposes the scope for current request.
Public methodStatic memberEnsureRequestScope
Ensures the transaction scope for current request.
Public methodLock
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.)
Public methodUsing
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.)
Top
See Also