TransactionKey property


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I think this key is used to get DbTransaction object from  Transaction Collection.

(DataBasics.DataSources[""].Transactions).

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.

 

 

 


Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
StrataFrame business objects have the ability to create a snapshot and then restore a snap shot of any contents of a BO. This can be done on a key as well and can be extremely useful.



MyBO.SaveCurrentDataTableToSnapshot("MySnapshotKey");

MyBO.RestoreCurrentDataTableSnapshot("MySnapshotKey", true);




The above code will save and respectively restore a snapshot saved off on a BO. You can do anything you like between the two and when you call the restore, the BO will be returned to its original state. Now this doesn't persist back to the database this way. If you are doing this during saves, then you need to use a transaction, which goes back to your original inquiry regarding a BO and transactions. If I am missing something, then please further explain what you are trying to accomplish.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search