From f280126d6976731dcbff94004bdb5dfefd924f73 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 16 Apr 2023 11:52:32 +0800 Subject: [PATCH] Performance optimization --- Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index 86a9779dc..8fbc89d52 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs @@ -681,7 +681,9 @@ namespace SqlSugar { Async(); //False asynchrony . No Support DataSet - return Task.FromResult(GetDataSetAll(sql, parameters)); + return Task.Run(() => { + return GetDataSetAll(sql, parameters); + }); } #endregion