我已启用 System.Transactions 的日志记录:
<system.diagnostics>
<sources>
<source name="System.Transactions" switchValue="Warning">
-- my listeners here
</source>
</sources>
</system.diagnostics>
我看到了很多奇怪的日志警告,例如:
- 调用事务回滚
- 登记回调为负
- TransactionScope不完整
可以请有经验的人给出一些解释吗?我的系统按预期工作,没有引发ADO.NET级别的异常。DAL代码是典型的L2S代码,没有显式的事务管理或任何黑客技巧。