Simpler Transactions

Posted by: youve been HAACKED, on 19 Aug 2009 | View original | Bookmarked: 0 time(s)

The .NET Framework provides support for managing transactions from code via the System.Transactions infrastructure. Performing database operations in a transaction is as easy as writing a using block with the TransactionScope class. using(TransactionScope transaction = new TransactionScope()) { DoSomeWork(); SaveWorkToDatabase(); transaction.Complete(); } At the end of the using block, Dispose is called on the transaction scope. If the transaction has not been completed (in...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.

Similar Posts

  • SOA patterns - Reservations more
  • Azure Pricing more
  • LINQ to SQL and Transactions more
  • Transactions are bad for REST more
  • SQL SERVER - Interesting Observation of DMV of Active Transactions and DMV of Current Transactions more
  • Silverlight and WPF future, the death of ASP.NET? more
  • Clarity Consulting Unveils New Point of Sale (POS) 'Innovation Lane' at National Retail Federation Convention more
  • System.Transactions Timeout more
  • Why choose WCF for REST? more
  • Parallel Extensions to the .NET FX CTP more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD