WrappedTransaction class

namespace: Serenity.Data   assemblySerenity.Net.Data

Wraps a transaction instance to add current transaction support for the wrapped connection.

public class WrappedTransaction : IDbTransaction, IHasActualTransaction

Public Members

name description
ActualTransaction { get; } Returns the actual transaction.
Connection { get; } Returns the connection associated with this transaction.
IsolationLevel { get; } Returns the transaction isolation level
Commit() Commits actual transaction and sets wrapped transaction for related connection to null.
Dispose() Rolbacks actual transaction and sets wrapped transaction for related connection to null.
Rollback() Rollbacks actual transaction and sets wrapped transaction for related connection to null.

See Also