Returns a transaction object.
Public Shadows Function BeginTransaction() As ULTransaction
public new ULTransaction BeginTransaction()
A ULTransaction object representing the new transaction.
ULException class The connection is closed.
InvalidOperationException ULConnection does not support parallel transactions.
Commands associated with a transaction object are executed as a single transaction. The transaction is terminated with ULTransaction.Commit or ULTransaction.Rollback.
The transaction is created with IsolationLevel.ReadCommitted.
To associate a command with a transaction object, use the ULCommand.Transaction property. The current transaction is automatically associated to commands created by ULConnection.CreateCommand.
By default, the connection does not use transactions and all commands are automatically committed as they are executed. Once the current transaction is committed or rolled back, the connection reverts to auto commit mode and the previous isolation level until the next call to BeginTransaction.
UltraLite's definition of each isolation level is slightly different than ADO.NET's documentation of IsolationLevel. For more information, see UltraLite isolation levels.
This is the strongly-typed version of System.Data.IDbConnection.BeginTransaction() and System.Data.Common.DbConnection.BeginTransaction().
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |