Class TransactionScope

Represents transaction scope.

Inheritance
System.Object
TransactionScope
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0
Syntax
public class TransactionScope : IDisposable

Constructors

TransactionScope(SqlTransactionScope)

Initializes a new instance of the TransactionScope class.

Declaration
public TransactionScope(SqlTransactionScope transaction)
Parameters
Type Name Description
SqlTransactionScope transaction

The transaction.

Properties

SqlTransactionScope

Gets the SQL transaction scope.

Declaration
public SqlTransactionScope SqlTransactionScope { get; protected set; }
Property Value
Type Description
SqlTransactionScope

The SQL transaction scope.

TransactionId

Gets the transaction id.

Declaration
public Guid TransactionId { get; }
Property Value
Type Description
System.Guid

The transaction id.

Methods

AddCallback(TransactionCallback, Object)

Adds the callback.

Declaration
public void AddCallback(TransactionCallback callback, object state)
Parameters
Type Name Description
TransactionCallback callback

The callback.

System.Object state

The state.

Commit()

Commits this instance.

Declaration
public void Commit()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

Dispose(Boolean)

Disposes the specified disposing.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

if set to true [disposing].

Implements

System.IDisposable