DbContextTransactionExtensions DbContextTransactionExtensions Class

Extension methods for IDbContextTransaction.

Syntax

Declaration

public static class DbContextTransactionExtensionsPublic Module DbContextTransactionExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • DbContextTransactionExtensions
    DbContextTransactionExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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

Methods

  • GetDbTransaction(IDbContextTransaction)
    GetDbTransaction(IDbContextTransaction)

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

    public static DbTransaction GetDbTransaction(this IDbContextTransaction dbContextTransaction)<ExtensionAttribute>
    Public Shared Function GetDbTransaction(dbContextTransaction As IDbContextTransaction) As DbTransaction

    Parameters

    Returns

    • System.Data.Common.DbTransaction
      System.Data.Common.DbTransaction

      The underlying System.Data.Common.DbTransaction.

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll