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 >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.144</version>
<version>5.1.4.145</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

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

View File

@ -338,7 +338,8 @@ namespace SqlSugar
if (
context?.CurrentConnectionConfig?.ConfigureExternalServices?.SplitTableService !=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