OracleConnection.BeginTransaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins a transaction at the database.
Overloads
BeginTransaction() |
Begins a transaction at the database. |
BeginTransaction(IsolationLevel) |
Begins a transaction at the database with the specified IsolationLevel value. |
BeginTransaction()
Begins a transaction at the database.
public:
System::Data::OracleClient::OracleTransaction ^ BeginTransaction();
public System.Data.OracleClient.OracleTransaction BeginTransaction();
member this.BeginTransaction : unit -> System.Data.OracleClient.OracleTransaction
override this.BeginTransaction : unit -> System.Data.OracleClient.OracleTransaction
Public Function BeginTransaction () As OracleTransaction
Returns
An object representing the new transaction.
Exceptions
Parallel transactions are not supported.
Remarks
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.
Note
If you do not specify an isolation level, the default isolation level is used. To specify an isolation level with the BeginTransaction method, use the BeginTransaction overload.
See also
Applies to
BeginTransaction(IsolationLevel)
Begins a transaction at the database with the specified IsolationLevel value.
public:
System::Data::OracleClient::OracleTransaction ^ BeginTransaction(System::Data::IsolationLevel il);
public System.Data.OracleClient.OracleTransaction BeginTransaction(System.Data.IsolationLevel il);
member this.BeginTransaction : System.Data.IsolationLevel -> System.Data.OracleClient.OracleTransaction
override this.BeginTransaction : System.Data.IsolationLevel -> System.Data.OracleClient.OracleTransaction
Public Function BeginTransaction (il As IsolationLevel) As OracleTransaction
Parameters
The transaction isolation level for this connection.
Returns
An object representing the new transaction.
Exceptions
Parallel transactions are not supported.
Remarks
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.