Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use TransactionScope in .net core framework? I cannot find it

I am new to .Net Core, and upgrading some code from .Net 4.0 to .Net Core. How to use TransactionScope in .net core framework? I cannot find it.

like image 203
Super Coder Avatar asked Dec 14 '22 02:12

Super Coder


2 Answers

It seems there is no support for that yet on .net Core. As far I understand from this github ticket, it's something already implemented but planned for version 1.2.

EDIT

As 12/6/2017 this is still not implemented

jimcarley commented on Aug 21

Support of distributed transactions requires a distributed transaction coordinator on the platform where you are running. For Windows we obviously have MSDTC. But we need to make modifications to the classes and interfaces to allow an alternative distributed transaction coordinator to be "plugged in" and used. Those changes still need to be designed. The idea would be to modify the existing internal classes that use MSDTC to conform to the "pluggable" model.

like image 50
Claudio Redi Avatar answered Dec 22 '22 01:12

Claudio Redi


I know that this post is older.

But, .netcore 1.2 has changed to .net 2.0 and will be available in the Q2 this year.

probably may 10.

to keep updated just follow the .netcore roadmap in this link

https://github.com/dotnet/core/blob/master/roadmap.md

EDIT I founded this documentation about transaction scope, i didn't tried it already.

System.Transactions.TransactionScope

Any news i will keep updated here!

like image 29
ditao Avatar answered Dec 21 '22 23:12

ditao