<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transaction on Ash Tewari</title><link>https://www.tewari.info/tag/transaction/</link><description>Recent content in Transaction on Ash Tewari</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Wed, 17 Oct 2012 16:10:42 +0000</lastBuildDate><atom:link href="https://www.tewari.info/tag/transaction/feed.xml" rel="self" type="application/rss+xml"/><item><title>Understanding and Using System.Transactions</title><link>https://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/</link><pubDate>Wed, 17 Oct 2012 16:10:42 +0000</pubDate><guid>https://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/</guid><description>&lt;p&gt;These are some resources to help grasp &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions%28v=vs.90%29.aspx" title="System.Transactions Namespace"&#10; target="_blank" rel="noopener"&#10; &gt;System.Transactions&lt;/a&gt; functionality and use it effectively in your projects:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818755%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;Features Provided by System.Transactions&lt;/a&gt; to &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818751%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;create transactional applications&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818746%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;Implementing an Implicit Transaction using Transaction Scope&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;MSDN Magazine Articles by &lt;a class="link" href="http://www.johnpapa.net/" target="_blank" rel="noopener"&#10; &gt;John Papa&lt;/a&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx" target="_blank" rel="noopener"&#10; &gt;ADO.NET and System.Transactions&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163527.aspx" target="_blank" rel="noopener"&#10; &gt;Revisiting System.Transactions&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;These are specific to &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions.transactionscope%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;TransactionScope&lt;/a&gt;(the way to go in most cases):&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Here is a practical example of &lt;a class="link" href="http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/" target="_blank" rel="noopener"&#10; &gt;Using TransactionScope to handle transactions in .net&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;This &lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc300805.aspx" target="_blank" rel="noopener"&#10; &gt;article in MSDN Magazine&lt;/a&gt; gets in depth with the way a TransactionScope like functionality can be implemented. Gives you a good understanding of what is happening under the hood when using TransactionScope in some Repository implementations in multi-threaded scenarios.&lt;/li&gt;&#10;&lt;li&gt;This CodeProject article is another example of &lt;a class="link" href="http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET" target="_blank" rel="noopener"&#10; &gt;implementing a transactional repository&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;There are &lt;a class="link" href="http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx" target="_blank" rel="noopener"&#10; &gt;excellent tips here&lt;/a&gt; about configuring TransactionScope when using it with SQL Server.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;This is a good resource for &lt;a class="link" href="http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL" target="_blank" rel="noopener"&#10; &gt;understanding CommitableTransaction&lt;/a&gt; usage.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;And this one on the CodeProject has brilliant, in-depth and under-the-hood coverage - &lt;a class="link" href="http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Imple" target="_blank" rel="noopener"&#10; &gt;Truly Understanding .NET Transactions and WCF Implementation&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Features Provided by System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818755%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/library/vstudio/ee818755(v=vs.100).aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Implementing an Implicit Transaction using Transaction Scope&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818746%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/library/vstudio/ee818746(v=vs.100).aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;MSDN Articles by John Papa&lt;/p&gt;&#10;&lt;p&gt;ADO.NET and System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc163847.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Revisiting System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163527.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc163527.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;These are specific to TransactionScope (the way to go in most cases)&lt;/p&gt;&#10;&lt;p&gt;Here is a practical example of Using TransactionScope :&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/" target="_blank" rel="noopener"&#10; &gt;http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This one gets in depth with the way a TransactionScope like functionality can be implemented. Gives you a good understanding of what is happening under the hood when using TransactionScope in some Repository implementations in multi-threaded scenarios.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc300805.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc300805.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Here is another example of implementing a transactional repository :&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;There are excellent tips here about configuring TransactionScope when used with SQL Server:&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx" target="_blank" rel="noopener"&#10; &gt;http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This is a good resource for CommitableTransaction usage - &lt;a class="link" href="http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;And this one has brilliant under-the-hood coverage - &lt;a class="link" href="http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Impl" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Impl&lt;/a&gt;&lt;/p&gt;&#10;</description></item></channel></rss>