CMSTransactionScope MembersKentico 8.1 API Reference
The CMSTransactionScope type exposes the following members.
Constructors

  NameDescription
Public methodCMSTransactionScope
Constructor. Opens the connection and begins the transaction.
Back to 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 DisposableObject Dispose .)
Public methodStatic memberDisposeRequestScope
Disposes the scope for current request.
Public methodStatic memberEnsureRequestScope
Ensures the transaction scope for current request.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodLock
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUsing
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to 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.
Back to 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.
Back to Top
See Also