IDbContextTransaction IDbContextTransaction Interface

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.

Syntax

Declaration

public interface IDbContextTransaction : IDisposablePublic Interface IDbContextTransaction
    Inherits IDisposable

Inherited Members

Dispose()
Dispose()

Methods summary

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

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

Methods

  • Commit()
    Commit()

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

    void Commit()Sub Commit
  • Rollback()
    Rollback()

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

    void Rollback()Sub Rollback

Details

Assembly

Microsoft.EntityFrameworkCore.dll