mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-28 16:37:58 +08:00
code optimization
This commit is contained in:
parent
416200e032
commit
149183fed8
@ -397,7 +397,7 @@ namespace SqlSugar
|
||||
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
|
||||
foreach (var item in columns)
|
||||
{
|
||||
if (item.DataType == "decimal" && this.Context.CurrentConnectionConfig.DbType == DbType.SqlServer && item.DecimalDigits == 0 && item.Length == 0)
|
||||
if (item.DataType == "decimal" && item.DecimalDigits == 0 && item.Length == 0)
|
||||
{
|
||||
item.DecimalDigits = 4;
|
||||
item.Length = 18;
|
||||
|
Loading…
Reference in New Issue
Block a user