Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2009, 05:21 PM
Authorized User
 
Join Date: Mar 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Default Using TransactionScope in the BLL?

Pages 69 thru 73 discusses Transaction Management. TransactionScope on page 73 seems to be the author's preferred method, but it is not implemented in the sample web site.

Has anyone implemented TransactionScope in the BLL? Can you provide any insights as to changes needed in the BLL and DAL, especially when multiple tables are updated. The SQL Client approach has a using statement for a single SQL statement, which performs and automatic Close/Dispose of the connection.

Thanks in advance for any advice.
Tom
 
Old July 8th, 2009, 09:45 AM
Authorized User
 
Join Date: Mar 2009
Posts: 75
Thanks: 16
Thanked 1 Time in 1 Post
Default

I didn't try to use transaction on DAL or BLL level,
but there is no conflict between "using statement" and transaction.
Because you use transaction on an open connection and just execute sql commands one by one until you commit.
 
Old July 8th, 2009, 05:02 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

TransactionScope is implemented in the BLL: in the Order class in the store module.

Quite frankly, I can't think of any reason why you'd need to use it anywhere else. There are really no other areas where multiple inserts or updates take place, unless I'm remembering incorrectly.

Perhaps you could explain where and how you feel transactions would be useful.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}




Similar Threads
Thread Thread Starter Forum Replies Last Post
BLL and DAL kss BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 13 November 24th, 2008 03:59 PM
Help! BLL error. scottlucas58 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 8th, 2008 02:35 PM
DAL to BLL rodmcleay LINQ 3 June 2nd, 2008 12:15 PM
TransactionScope and Shared Web Hosting Chris_H BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 6th, 2007 10:17 PM
Using DataList with BLL DureSameen BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 January 11th, 2007 09:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.