From d790054e36dd6c137c66fd86554751dccef8940e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 17 Feb 2023 18:54:48 +0800 Subject: [PATCH] Synchronization code --- .../Abstract/FastestProvider/Private.cs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs index 4d98df1ce..a2bc037d9 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs @@ -169,19 +169,15 @@ namespace SqlSugar } private DataTable GetCopyWriteDataTable(DataTable dt) { - DataTable tempDataTable = ReflectionInoCore.GetInstance().GetOrCreate("BulkCopyAsync_dt" + dt.TableName, - () => + DataTable tempDataTable = null; + if (AsName == null) { - if (AsName == null) - { - return queryable.Where(it => false).Select("*").ToDataTable(); - } - else - { - return queryable.AS(AsName).Where(it => false).Select("*").ToDataTable(); - } + tempDataTable=queryable.Where(it => false).Select("*").ToDataTable(); } - ).Copy(); + else + { + tempDataTable=queryable.AS(AsName).Where(it => false).Select("*").ToDataTable(); + }; List uInt64TypeName = new List(); foreach (DataColumn item in tempDataTable.Columns) {