Table of Contents

Class DuckDBTransaction

Namespace
DuckDB.NET.Data
Assembly
DuckDB.NET.Data.dll
public class DuckDBTransaction : DbTransaction, IDbTransaction, IDisposable, IAsyncDisposable
Inheritance
DuckDBTransaction
Implements
Inherited Members

Constructors

DuckDBTransaction(DuckDBConnection, IsolationLevel)

public DuckDBTransaction(DuckDBConnection connection, IsolationLevel isolationLevel)

Parameters

connection DuckDBConnection
isolationLevel IsolationLevel

Properties

DbConnection

When overridden in a derived class, gets the DbConnection object associated with the transaction.

protected override DbConnection DbConnection { get; }

Property Value

DbConnection

The DbConnection object associated with the transaction.

IsolationLevel

When overridden in a derived class, gets the isolation level for this transaction.

public override IsolationLevel IsolationLevel { get; }

Property Value

IsolationLevel

The isolation level for this transaction.

Methods

Commit()

When overridden in a derived class, commits the database transaction.

public override void Commit()

Dispose(bool)

Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

If true, this method releases all resources held by any managed objects that this DbTransaction references.

Rollback()

When overridden in a derived class, rolls back a transaction from a pending state.

public override void Rollback()