gpt4 book ai didi

asp.net - 如何在.net core框架中使用TransactionScope?我找不到它

转载 作者:行者123 更新时间:2023-12-02 15:36:51 25 4
gpt4 key购买 nike

我是 .Net Core 新手,正在将一些代码从 .Net 4.0 升级到 .Net Core。如何在.net core框架中使用TransactionScope?我找不到它。

最佳答案

.net Core 似乎尚不支持这一点。据我了解this github 票证,它已经实现,但计划在 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.

关于asp.net - 如何在.net core框架中使用TransactionScope?我找不到它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40752017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com