IDbContextTransactionManager IDbContextTransactionManager Interface

Definition

Creates and manages the current transaction.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IDbContextTransactionManager
Public Interface IDbContextTransactionManager

Properties

CurrentTransaction CurrentTransaction

Gets the current transaction.

Methods

BeginTransaction() BeginTransaction()

Begins a new transaction.

BeginTransactionAsync(CancellationToken) BeginTransactionAsync(CancellationToken)

Asynchronously begins a new transaction.

CommitTransaction() CommitTransaction()

Commits all changes made to the database in the current transaction.

RollbackTransaction() RollbackTransaction()

Discards all changes made to the database in the current transaction.