Skip to content

WrappedTransaction class

namespace: Serenity.Data   assemblySerenity.Net.Services

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

public class WrappedTransaction : DbTransaction, IHasActualTransaction

Public Members

name description
ActualTransaction { get; } Returns the actual transaction.
override IsolationLevel { get; } Returns the transaction isolation level
override Commit() Commits actual transaction and sets wrapped transaction for related connection to null.
override CommitAsync(…) Commits actual transaction asynchronously and sets wrapped transaction for related connection to null.
override DisposeAsync() Disposes actual transaction asynchronously and sets wrapped transaction for related connection to null.
override Rollback() Rollbacks actual transaction and sets wrapped transaction for related connection to null.
override RollbackAsync(…) Rollbacks actual transaction asynchronously and sets wrapped transaction for related connection to null.

Protected Members

name description
override DbConnection { get; } Returns the connection associated with this transaction.
override Dispose(…) Disposes actual transaction and sets wrapped transaction for related connection to null.

See Also