Class SqlTransactionScope
Represents sql transaction scope.
Inheritance
System.Object
SqlTransactionScope
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.Sql
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class SqlTransactionScope : IDisposable
Properties
InnerCallbacks
Gets or sets the callbacks.
Declaration
protected ArrayList InnerCallbacks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ArrayList | The callbacks. |
IsActive
Gets a value indicating whether this instance is active.
Declaration
protected bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
OwnerContext
Gets or sets the owner context.
Declaration
public SqlContext OwnerContext { get; protected set; }
Property Value
Type | Description |
---|---|
SqlContext | The owner context. |
ParentScope
Gets or sets the parent scope.
Declaration
public SqlTransactionScope ParentScope { get; protected set; }
Property Value
Type | Description |
---|---|
SqlTransactionScope | The parent scope. |
TransactionId
Gets the transaction id.
Declaration
public Guid TransactionId { get; protected set; }
Property Value
Type | Description |
---|---|
System.Guid | The transaction id. |
Methods
AddCallback(SqlTransactionCallback)
Adds the callback.
Declaration
protected void AddCallback(SqlTransactionCallback callback)
Parameters
Type | Name | Description |
---|---|---|
SqlTransactionCallback | callback | The callback. |
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()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Implements
System.IDisposable