SqlConnection.IDbConnection.BeginTransaction Method

Definition

Overloads

IDbConnection.BeginTransaction()

Begins a database transaction.

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified IsolationLevel value.

IDbConnection.BeginTransaction()

Begins a database transaction.

C#
System.Data.IDbTransaction IDbConnection.BeginTransaction();

Returns

An object that represents the new transaction.

Implements

Remarks

Once the transaction has completed, you must explicitly commit or roll back the transaction by using the Commit() or Rollback() method.

Applies to

.NET Framework 1.1
Produkt Verzie
.NET Framework 1.1

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified IsolationLevel value.

C#
System.Data.IDbTransaction IDbConnection.BeginTransaction(System.Data.IsolationLevel iso);

Parameters

iso
IsolationLevel

One of the IsolationLevel values.

Returns

An object that represents the new transaction.

Implements

Remarks

Once the transaction has completed, you must explicitly commit or roll back the transaction by using the Commit() or Rollback() method.

Applies to

.NET Framework 1.1
Produkt Verzie
.NET Framework 1.1