DbConnection.BeginTransaction DbConnection.BeginTransaction DbConnection.BeginTransaction DbConnection.BeginTransaction Method

Definition

Starts a database transaction.

Overloads

BeginTransaction() BeginTransaction() BeginTransaction() BeginTransaction()

Starts a database transaction.

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Starts a database transaction with the specified isolation level.

Remarks

If you do not specify an isolation level, the default isolation level for the specific type of connection is used.

BeginTransaction() BeginTransaction() BeginTransaction() BeginTransaction()

Starts a database transaction.

public:
 System::Data::Common::DbTransaction ^ BeginTransaction();
public System.Data.Common.DbTransaction BeginTransaction ();
member this.BeginTransaction : unit -> System.Data.Common.DbTransaction
Public Function BeginTransaction () As DbTransaction

Returns

An object representing the new transaction.

Remarks

If you do not specify an isolation level, the default isolation level for the specific type of connection is used.

See also

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Starts a database transaction with the specified isolation level.

public:
 System::Data::Common::DbTransaction ^ BeginTransaction(System::Data::IsolationLevel isolationLevel);
public System.Data.Common.DbTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
member this.BeginTransaction : System.Data.IsolationLevel -> System.Data.Common.DbTransaction

Parameters

isolationLevel
IsolationLevel IsolationLevel IsolationLevel IsolationLevel

Specifies the isolation level for the transaction.

Returns

An object representing the new transaction.

See also

Applies to