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