Top "Transactionscope" questions

TransactionScope is a .NET class used to mark a block of code as transactional.

How to use TransactionScope in C#?

I am trying to use TransactionScope, but keep getting the exception below. The app is running on a different machine …

c# .net database transactions transactionscope
Why is System.Transactions TransactionScope default Isolationlevel Serializable

I am just wondering what a good reason to use Serializable as the default Isolationlevel may be when creating a …

c# transactionscope isolation-level
Using TransactionScope with Entity Framework 6

What I can't understand is if its possible to make changes to the context and get the changes in the …

c# entity-framework-6 dbcontext transactionscope savechanges
Understanding TransactionScopeOptions: RequiresNew = Suppress + Required?

I believe I understand TransactionScopeOption.Suppress and TransactionScopeOption.Required but am having difficulty understanding what TransactionScopeOption.RequiresNew does. Based on …

.net transactionscope
TransactionScope TransactionAborted Exception - transaction not rolled back. Should it be?

(SQL SERVER 2008) If a Transaction Timeout error occurs within a TransactionScope (.Complete()) would you expect the transaction to be rolled …

c# sql-server transactionscope
Under what circumstances is an SqlConnection automatically enlisted in an ambient TransactionScope Transaction?

What does it mean for an SqlConnection to be "enlisted" in a transaction? Does it simply mean that commands I …

c# ado.net transactionscope sqlconnection sqlcommand
Why is TransactionScope operation is not valid?

I have a routine which uses a recursive loop to insert items into a SQL Server 2005 database The first call …

c# asp.net transactionscope
Get TransactionScope to work with async / await

I'm trying to integrate async/await into our service bus. I implemented a SingleThreadSynchronizationContext based on this example http://blogs.…

c# transactionscope async-await
Database.BeginTransaction vs Transactions.TransactionScope

What is the difference between System.Transactions.TransactionScope and EF6's Database.BeginTransaction? Could someone give a small example or …

c# entity-framework transactions entity-framework-6 transactionscope
Difference Between Transaction and TransactionScope

I am developing an application which communicates with an SQL Server 2005 database to execute some stored procedures. My client demands …

c# sql-server-2005 transactions transactionscope