Επεξεργασία

Κοινή χρήση μέσω


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.

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

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified IsolationLevel value.

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction(System::Data::IsolationLevel iso) = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction (System.Data.IsolationLevel iso);
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 (iso As IsolationLevel) As IDbTransaction Implements IDbConnection.BeginTransaction

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