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.
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With