StartBehavior
This property specifies sessionless transaction start behavior in OracleConnection.BeginSessionlessTransaction()
.
Declaration
// C# public OracleSessionlessTransactionStartBehavior StartBehavior { get; set; }
Property Value
The OracleSessionlessTransactionStartBehavior
enum that specifies sessionless transaction start behavior.
Remarks
When StartBehavior
is set to OracleSessionlessTransactionStartBehavior.StartBeforeExecution
, the connection is associated with the sessionless transaction in OracleConnection.BeginSessionlessTransaction()
. However, the transaction will only start upon the first OracleCommand
SQL execution.
When StartBehavior
is set to OracleSessionlessTransactionStartBehavior.StartImmediate
, the sessionless transaction starts immediately when OracleConnection.BeginSessionlessTransaction()
is invoked.