mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Update codefirst
This commit is contained in:
parent
bb59df46cb
commit
6c98928de5
@ -384,7 +384,7 @@ namespace SqlSugar
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("int","int4","bigint","int8")&& columnInfo.DefaultValue.IsInt())
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user