mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
code optimization
This commit is contained in:
@@ -397,7 +397,7 @@ namespace SqlSugar
|
|||||||
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
|
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
|
||||||
foreach (var item in columns)
|
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.DecimalDigits = 4;
|
||||||
item.Length = 18;
|
item.Length = 18;
|
||||||
|
Reference in New Issue
Block a user