如何在.net 核心框架中使用TransactionScope?我找不到它了
How to use TransactionScope in .net core framework? I cannot find it
我是 .Net Core 的新手,正在将一些代码从 .Net 4.0 升级到 .Net Core。如何在.net 核心框架中使用TransactionScope?我找不到它。
.net Core 似乎还不支持它。据我从 this github ticket 了解到,它已经实现但计划在 1.2 版中实现。
编辑
截至 2017 年 12 月 6 日,这仍未实施
jimcarley 于 8 月 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.
我知道这个 post 比较老。
但是,.netcore 1.2 已更改为.net 2.0,并将在今年第二季度推出。
可能是 5 月 10 日。
要保持更新,只需遵循此 link
中的 .netcore 路线图
https://github.com/dotnet/core/blob/master/roadmap.md
编辑
我创建了这个关于事务范围的文档,我还没有尝试过。
System.Transactions.TransactionScope
有什么消息我会及时更新!
我是 .Net Core 的新手,正在将一些代码从 .Net 4.0 升级到 .Net Core。如何在.net 核心框架中使用TransactionScope?我找不到它。
.net Core 似乎还不支持它。据我从 this github ticket 了解到,它已经实现但计划在 1.2 版中实现。
编辑
截至 2017 年 12 月 6 日,这仍未实施
jimcarley 于 8 月 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.
我知道这个 post 比较老。
但是,.netcore 1.2 已更改为.net 2.0,并将在今年第二季度推出。
可能是 5 月 10 日。
要保持更新,只需遵循此 link
中的 .netcore 路线图https://github.com/dotnet/core/blob/master/roadmap.md
编辑 我创建了这个关于事务范围的文档,我还没有尝试过。
System.Transactions.TransactionScope
有什么消息我会及时更新!