RelationalTransaction RelationalTransaction Class

Definition

A transaction against the database.

Instances of this class are typically obtained from BeginTransaction() and it is not designed to be directly constructed in your application code.

public class RelationalTransaction : IDbContextTransaction, IDisposable, IInfrastructure<DbTransaction>
Public Class RelationalTransaction
    Implements IDbContextTransaction, IDisposable, IInfrastructure(Of DbTransaction)
Inheritance
System.ObjectSystem.Object
RelationalTransactionRelationalTransaction
Implements
IDbContextTransactionIDbContextTransaction System.IDisposableSystem.IDisposable IInfrastructure<System.Data.Common.DbTransaction>IInfrastructure(Of System.Data.Common.DbTransaction)

Constructors

RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean) RelationalTransaction(IRelationalConnection, DbTransaction, ILogger, Boolean)

Initializes a new instance of the RelationalTransaction class.

Methods

Commit() Commit()

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

Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
Rollback() Rollback()

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

System.Object.ToString() System.Object.ToString() Inherited from System.Object

Explicit Interface Implementations

IInfrastructure<DbTransaction>.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.Data.Common.DbTransaction>.Instance

Extension Methods

Microsoft.EntityFrameworkCore.Storage.DbContextTransactionExtensions.GetDbTransaction() Microsoft.EntityFrameworkCore.Storage.DbContextTransactionExtensions.GetDbTransaction()