mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
Optimize internal code
This commit is contained in:
parent
e5dce71982
commit
0cdcfffcf9
Binary file not shown.
@ -187,7 +187,9 @@ namespace FreeSql.Internal
|
||||
}
|
||||
try
|
||||
{
|
||||
col.DbDefaultValue = common.GetNoneParamaterSqlValue(new List<DbParameter>(), "init", col, colattr.MapType, defaultValue);
|
||||
var initParms = new List<DbParameter>();
|
||||
col.DbDefaultValue = common.GetNoneParamaterSqlValue(initParms, "init", col, colattr.MapType, defaultValue);
|
||||
if (initParms.Any()) col.DbDefaultValue = "NULL";
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user