mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-07 22:27:58 +08:00
SqlSugaScope bug
This commit is contained in:
parent
c8b9466e5b
commit
c2364ccfa1
@ -54,6 +54,7 @@ namespace SqlSugar
|
|||||||
if (UtilMethods.IsAsyncMethod(item.GetMethod()))
|
if (UtilMethods.IsAsyncMethod(item.GetMethod()))
|
||||||
{
|
{
|
||||||
isAsync = true;
|
isAsync = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return isAsync;
|
return isAsync;
|
||||||
@ -65,6 +66,13 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (method.DeclaringType != null)
|
||||||
|
{
|
||||||
|
if (method.DeclaringType.GetInterfaces().Contains(typeof(IAsyncStateMachine)))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
var name= method.Name;
|
var name= method.Name;
|
||||||
if (name.Contains("OutputAsyncCausalityEvents"))
|
if (name.Contains("OutputAsyncCausalityEvents"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user