mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update CodeFirst
This commit is contained in:
@@ -384,6 +384,10 @@ namespace SqlSugar
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("int","int4","bigint","int8")&& columnInfo.DefaultValue.IsInt())
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
public virtual bool UpdateColumn(string tableName, DbColumnInfo column)
|
||||
|
||||
Reference in New Issue
Block a user