mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-22 03:27:36 +08:00
Optimize old data for updating new columns
This commit is contained in:
@@ -384,7 +384,7 @@ namespace SqlSugar
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("double","decimal","int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("float","double","decimal","int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user