From b41ef3a04edc115c75d86ec81b5d8a850c5f1514 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 5 Mar 2024 23:02:27 +0800 Subject: [PATCH] Update split table --- .../Abstract/InsertableProvider/InsertableProvider.cs | 5 +++++ Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs index f17ea13f4..a42cc7a4e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs @@ -751,6 +751,11 @@ namespace SqlSugar var splitTableAttribute = typeof(T).GetCustomAttribute(); if (splitTableAttribute != null) { + if (splitTableAttribute.CustomSplitTableService==null + &&this.Context?.CurrentConnectionConfig?.ConfigureExternalServices?.SplitTableService!=null) + { + this.Context.CurrentConnectionConfig.ConfigureExternalServices.SplitTableService = null; + } return SplitTable((splitTableAttribute as SplitTableAttribute).SplitType); } else diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec index 87c5b843c..6097b2504 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec @@ -2,7 +2,7 @@ SqlSugarCore - 5.1.4.144-preview12 + 5.1.4.144-preview16 sunkaixuan 果糖大数据科技 http://www.apache.org/licenses/LICENSE-2.0.html