Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't find: System.Transactions Namespace

Tags:

c#

I'm trying to use transaction LINQ, but I cant' find the TransactionScope Class.

Help please. Thanks...

like image 562
yonan2236 Avatar asked Aug 03 '10 03:08

yonan2236


People also ask

What is System transactions?

The System. Transactions namespace provides a transaction framework that is fully integrated with ADO.NET and SQL Server common language runtime (CLR) integration. The System. Transactions. TransactionScope class makes a code block transactional by implicitly enlisting connections in a distributed transaction.

What is transaction scope in asp net?

TransactionScope is a class of System Namespace. It can also be termed as Transactions Namespace. The TransactionScope class supports transactions from code blocks and that is why it plays a key role in the . NET development framework. This class usually manages local as well as distributed transactions from our code.


1 Answers

usually System.Transactions is not part of your references, try to add it in your references by:

  • right click on your references if you are using Web Application or in your Project if you are using Web Site.
  • find the System.Transactions in the .NET references.

You should find the System.Transactions in your references.

like image 72
rob waminal Avatar answered Sep 19 '22 14:09

rob waminal