namespace: Serenity.Data assembly: Serenity.Net.Data
Wraps a transaction instance to add current transaction support for the wrapped connection.
public class WrappedTransaction : IDbTransaction, IHasActualTransaction
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. |
- interface IHasActualTransaction
- Source: WrappedTransaction.cs