From 54552ee73c25a1f32f3ba6b7e5015c1bd467e7bb Mon Sep 17 00:00:00 2001 From: Wenbo Cao <104199@smsassist.com> Date: Wed, 2 Oct 2024 17:00:23 -0500 Subject: [PATCH] add distinct logic for table name --- .../BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugins/BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs b/src/Plugins/BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs index 71bd777f..64abbbd1 100644 --- a/src/Plugins/BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs +++ b/src/Plugins/BotSharp.Plugin.ExcelHandler/Services/MySqlService.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -84,7 +85,7 @@ namespace BotSharp.Plugin.ExcelHandler.Services tables.Add(tableName); } } - return tables; + return tables.Distinct().ToList(); } }