SqlSugaScope bug

This commit is contained in:
sunkaixuna 2021-07-16 02:34:30 +08:00
parent c8b9466e5b
commit c2364ccfa1

View File

@ -54,6 +54,7 @@ namespace SqlSugar
if (UtilMethods.IsAsyncMethod(item.GetMethod()))
{
isAsync = true;
break;
}
}
return isAsync;
@ -65,6 +66,13 @@ namespace SqlSugar
{
return false;
}
if (method.DeclaringType != null)
{
if (method.DeclaringType.GetInterfaces().Contains(typeof(IAsyncStateMachine)))
{
return true;
}
}
var name= method.Name;
if (name.Contains("OutputAsyncCausalityEvents"))
{