From facde9fe3946914db0f9b6158ca3a061c2e67fe8 Mon Sep 17 00:00:00 2001 From: yinchenjue <44486973+yinchenjue@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:26:18 +0800 Subject: [PATCH] Update XuguDataAdapter.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改重名判断 --- .../SqlSugar.XuguCore/DataTableExtensions/XuguDataAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar.XuguCore/DataTableExtensions/XuguDataAdapter.cs b/Src/Asp.NetCore2/SqlSugar.XuguCore/DataTableExtensions/XuguDataAdapter.cs index 49cf97363..38de50cfb 100644 --- a/Src/Asp.NetCore2/SqlSugar.XuguCore/DataTableExtensions/XuguDataAdapter.cs +++ b/Src/Asp.NetCore2/SqlSugar.XuguCore/DataTableExtensions/XuguDataAdapter.cs @@ -62,7 +62,7 @@ namespace SqlSugar.Xugu { string name = dr.GetName(i).Trim(); //重名时的处理 - if (!columns.Contains(name)) name += i; + if (columns.Contains(name)) name += i; columns.Add(new DataColumn(name, dr.GetFieldType(i))); } //填充行 @@ -95,4 +95,4 @@ namespace SqlSugar.Xugu } } } -} \ No newline at end of file +}