System.Data.IDbConnection.BeginTransaction Method

Begins a database transaction.

Syntax

public IDbTransaction BeginTransaction ()

Returns

An object representing the new transaction.

Remarks

Once the transaction has completed, you must explicitly commit or roll back the transaction by using the IDbTransaction.Commit or IDbTransaction.Rollback methods.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0