DbContextTransactionExtensions DbContextTransactionExtensions Class

Definition

Extension methods for IDbContextTransaction.

public static class DbContextTransactionExtensions
Public Module DbContextTransactionExtensions
Inheritance
System.ObjectSystem.Object
DbContextTransactionExtensionsDbContextTransactionExtensions

Inherited Members

System.Object

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

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
dbContextTransaction
IDbContextTransaction IDbContextTransaction

The transaction to get the System.Data.Common.DbTransaction from.

Returns
System.Data.Common.DbTransaction System.Data.Common.DbTransaction

The underlying System.Data.Common.DbTransaction.