5.1.4.145

This commit is contained in:
sunkaixuan 2024-03-07 18:44:03 +08:00
parent e6db02eb07
commit b81f94019f
3 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.144</version> <version>5.1.4.145</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCoreNoDrive</id> <id>SqlSugarCoreNoDrive</id>
<version>5.1.4.144</version> <version>5.1.4.145</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>Landa</owners> <owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@ -338,7 +338,8 @@ namespace SqlSugar
if ( if (
context?.CurrentConnectionConfig?.ConfigureExternalServices?.SplitTableService !=null context?.CurrentConnectionConfig?.ConfigureExternalServices?.SplitTableService !=null
&& splitTableAttribute.CustomSplitTableService == null && splitTableAttribute.CustomSplitTableService == null
&& context.EntityMaintenance.GetEntityInfo(entityType).DbTableName?.EndsWith("_{year}{month}{day}") ==true && context.EntityMaintenance.GetEntityInfo(entityType).DbTableName?.EndsWith("_{year}{month}{day}") ==true
&& !context.EntityMaintenance.GetEntityInfo(entityType).DbTableName?.Replace("_{year}{month}{day}","")?.Contains("{") == true
) )
{ {
context.CurrentConnectionConfig.ConfigureExternalServices.SplitTableService context.CurrentConnectionConfig.ConfigureExternalServices.SplitTableService