😎若库类型是Oracle则默认主键名字和参数名字最大长度

This commit is contained in:
zuohuaijun 2024-10-13 21:59:23 +08:00
parent 308d7bd34a
commit 2ee6aed25c
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@
<PackageReference Include="SKIT.FlurlHttpClient.Wechat.TenpayV3" Version="3.8.0" />
<PackageReference Include="SqlSugarCore" Version="5.1.4.169" />
<PackageReference Include="SSH.NET" Version="2024.1.0" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.4.5" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.4.6" />
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1104" />
<PackageReference Include="UAParser" Version="3.1.47" />
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />

View File

@ -99,6 +99,10 @@ public static class SqlSugarSetup
// 若库类型是人大金仓则默认设置PG模式
if (config.DbType == SqlSugar.DbType.Kdbndp)
config.MoreSettings.DatabaseModel = SqlSugar.DbType.PostgreSQL; // 配置PG模式主要是兼容系统表差异
// 若库类型是Oracle则默认主键名字和参数名字最大长度
if (config.DbType == SqlSugar.DbType.Oracle)
config.MoreSettings.MaxParameterNameLength = 30;
}
/// <summary>