OracleConnection::BeginTransaction Method (IsolationLevel)

 

Begins a transaction at the database with the specified IsolationLevel value.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

public:
OracleTransaction^ BeginTransaction(
	IsolationLevel il
)

Parameters

il
Type: System.Data::IsolationLevel

The transaction isolation level for this connection.

Return Value

Type: System.Data.OracleClient::OracleTransaction^

An object representing the new transaction.

Exception Condition
InvalidOperationException

Parallel transactions are not supported.

To commit or roll back the transaction, you must explicitly use the Commit or Rollback methods.

To ensure that the .NET Framework Data Provider for Oracle transaction management model performs correctly, avoid using other transaction management models, such as those provided by the database.

The following example creates an OracleConnection and an OracleTransaction. It also demonstrates how to use the BeginTransaction, Commit, and Rollback methods.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: