StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Documentation issueExpand / Collapse
Author
Message
Posted 02/10/2006 7:11:08 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
In this sampleublic Sub SaveAllOnTransaction()
'-- Add a try around the transaction processing
' This enables the process to call TransactionRollback()
' if anything bad happens during the transaction process.
Try
'-- Start the transaction
BusinessLayer.TransactionBegin(Data.IsolationLevel.ReadCommitted)

'-- Save the business objects on the transaction
Me.Customers.Save(True)
Me.Orders.Save(True)
Me.OrderItems.Save(True)

'-- When business objects are saved on the transaction, the
' pending changes to their internal DataTables are NOT saved
' until TransactionEnd() is called...
'-- Call transaction end to commit the transaction queries and
' accept the pending changes on all of the business objects
' that participated in the transaction.
BusinessLayer.TransactionEnd()

Catch ex As Exception
'-- If an exception occurs during the saving of the records, then
' abort the transaction.
BusinessLayer.TransactionRollback()
End Try
End Sub

TransactionEnd should be TransactionCommit
and
Data.IsolationLevel.ReadCommitted does not compile.
It should either be System.Data.IsolationLevel.ReadCommitted
or
IsolationLevel.ReadCommitted

I think.
Post #542
Posted 03/13/2006 12:36:22 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:04:58 PM
Posts: 4,780, Visits: 4,744
Thanks.  We will take care of it.
Post #625
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:29am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.