ODACv6.5 TOraSession how to use BeginTrans event like adoconnection?
TOraSession have not
"OraSession1.BeginTrans;OraSession1.CommitTrans;OraSession1.RollbackTrans; "?
ODACv6.5 OraSession how to use BeginTrans like adoconnection
TOraSession has the StartTransaction, Commit, and Rollback methods. But it has no corresponding events.
You can manually call your code that should be executed after a transaction is started. For example:
You can manually call your code that should be executed after a transaction is started. For example:
Code: Select all
OraSession.StartTransaction;
DoOnStartTransaction; // this is your procedure that is executed after a transaction is started