From 13e8ebeab9a9479f2b53be3c30d9811c118830a0 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Fri, 22 Jan 2021 19:52:40 +0800 Subject: [PATCH] - --- Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs index 47c462840..df121e761 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs @@ -73,6 +73,10 @@ namespace SqlSugar { return true; } + if (name.Contains("ExecuteAsync")) + { + return true; + } Type attType = typeof(AsyncStateMachineAttribute); var attrib = (AsyncStateMachineAttribute)method.GetCustomAttribute(attType); return (attrib != null);