IDbTransaction Interface

Definition

Represents a transaction to be performed at a data source.

public interface class IDbTransaction : IDisposable
public interface IDbTransaction : IDisposable
type IDbTransaction = interface
    interface IDisposable
Public Interface IDbTransaction
Implements IDisposable
Derived
Implements

Remarks

The IDbTransaction interface enables you to implement a Transaction class, which represents the transaction to be performed at a data source.

An application does not create an instance of the IDbTransaction interface directly, but creates an instance of a class that implements IDbTransaction.

Classes that inherit IDbTransaction must implement the inherited members, and typically define additional members to add provider-specific functionality.

Methods

Commit()

Commits the database transaction.

Rollback()

Rolls back a transaction from a pending state.

Applies to