(DataBasics
Normally, When BusinessLayer.TransactionBegin is called a DbTransaction Object is added to the collection with a default key value. This default transaction will be used.
When do I need simultaneous transactions ? I mean, When will be more than one transactions in that collection. So I will follow a key.
The beauty of StrataFrame is that you can have different business objects saving on different transactions. When you call the Save you can supply the transaction key. So if you start more than one transaction you will have more than one in this collection. This allows some BOs to be saved on Transaction A, others on Transaction B, and some not on a transaction if you have this need.
Is this "transaction key" mechanizm same as "savepoint mechanizm in oracle or sql server"?
Can u explain little bit?
Kind regards...
Let me put my question more clear since i know about transactional processing :
I wonder whether "transaction key" issue corresponds to savepoint_varible in
the following (Transact-SQL) MS SQl Server command
SAVE { TRAN | TRANSACTION } { savepoint_name | @savepoint_variable } [ ; ] ( MS SQL SERVER)
As you know same command in oracle is
SAVEPOINT <savepoint id>
I hope my question is more clear now.
Kind regards....
No, the transaction key relates to the transaction name, not a savepoint name.
The difference being that passing a new transaction key from within strataframe would not create a new SavePoint within the existing transaction but, instead, would create a brand new transaction with the "transaction_name" being the StrataFrame transaction key.
So, in the MSDN online docs here, the StrataFrame transaction key relates to transaction_name | @tran_name_variable.
Can u suggest a way to implement savepoint issue in Strata Framework?
Or it is impossible?