Table of Contents

Class DbContextTransactionExtensions

Namespace
Microsoft.EntityFrameworkCore.Storage
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Extension methods for Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction.

public static class DbContextTransactionExtensions
Inheritance
DbContextTransactionExtensions
Inherited Members

Methods

GetDbTransaction(IDbContextTransaction)

Gets the underlying DbTransaction for the given transaction. Throws if the database being targeted is not a relational database that uses DbTransaction.

public static DbTransaction GetDbTransaction(this IDbContextTransaction dbContextTransaction)

Parameters

dbContextTransaction IDbContextTransaction

The transaction to get the DbTransaction from.

Returns

DbTransaction

The underlying DbTransaction.