Bewerken

Delen via


OracleConnection.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.

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction() = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction ();
abstract member System.Data.IDbConnection.BeginTransaction : unit -> System.Data.IDbTransaction
override this.System.Data.IDbConnection.BeginTransaction : unit -> System.Data.IDbTransaction
Function BeginTransaction () As IDbTransaction Implements IDbConnection.BeginTransaction

Returns

An object representing 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() methods.

Applies to

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified IsolationLevel value.

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction(System::Data::IsolationLevel il) = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction (System.Data.IsolationLevel il);
abstract member System.Data.IDbConnection.BeginTransaction : System.Data.IsolationLevel -> System.Data.IDbTransaction
override this.System.Data.IDbConnection.BeginTransaction : System.Data.IsolationLevel -> System.Data.IDbTransaction
Function BeginTransaction (il As IsolationLevel) As IDbTransaction Implements IDbConnection.BeginTransaction

Parameters

il
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() methods.

Applies to