如何全局自动传入外部事物? #1500
coolqingcheng
started this conversation in
General
如何全局自动传入外部事物?
#1500
Replies: 1 comment
-
fsql.Aop.CommandBefore += (_, e) =>
{
var cmd = e.Command;
if (cmd.Transaction == null) ...;
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我在AsyncLocal里面存储了Transation,想在curd的时候,判断是否有Transation,如果有,就传递到WithTransaction。
可以在不改动现有的代码的情况下,全局拦截吗?
Beta Was this translation helpful? Give feedback.
All reactions