Share via


SqliteTransaction Class

Definition

Represents a transaction made against a SQLite database.

public class SqliteTransaction : System.Data.Common.DbTransaction
type SqliteTransaction = class
    inherit DbTransaction
Public Class SqliteTransaction
Inherits DbTransaction
Inheritance
SqliteTransaction

Properties

Connection

Gets the connection associated with the transaction.

DbConnection

Gets the connection associated with the transaction.

IsolationLevel

Gets the isolation level for the transaction.

SupportsSavepoints

Gets a value that indicates whether this DbTransaction instance supports database savepoints. If false, the methods SaveAsync(String, CancellationToken), RollbackAsync(String, CancellationToken) and ReleaseAsync(String, CancellationToken) as well as their synchronous counterparts are expected to throw NotSupportedException.

Methods

Commit()

Applies the changes made in the transaction.

Dispose(Boolean)

Releases any resources used by the transaction and rolls it back.

Release(String)

Destroys a savepoint previously defined in the current transaction. This allows the system to reclaim some resources before the transaction ends.

Rollback()

Reverts the changes made in the transaction.

Rollback(String)

Rolls back all commands that were executed after the specified savepoint was established.

Save(String)

Creates a savepoint in the transaction. This allows all commands that are executed after the savepoint was established to be rolled back, restoring the transaction state to what it was at the time of the savepoint.

Applies to