mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Upgrade formatted SQL
This commit is contained in:
parent
e631f58f7a
commit
caafd43def
@ -295,6 +295,10 @@ namespace SqlSugar
|
||||
}
|
||||
else if (columnInfo.InsertSql.HasValue())
|
||||
{
|
||||
if (columnInfo.InsertSql.Contains("{0}"))
|
||||
{
|
||||
return string.Format(columnInfo.InsertSql, columnInfo.Value?.ObjToString().ToSqlFilter());
|
||||
}
|
||||
return columnInfo.InsertSql;
|
||||
}
|
||||
else if (columnInfo.SqlParameterDbType is Type && (Type)columnInfo.SqlParameterDbType == UtilConstants.SqlConvertType)
|
||||
|
@ -482,6 +482,10 @@ namespace SqlSugar
|
||||
}
|
||||
else if (columnInfo.UpdateSql.HasValue())
|
||||
{
|
||||
if (columnInfo.InsertSql.Contains("{0}"))
|
||||
{
|
||||
return string.Format(columnInfo.InsertSql, columnInfo.Value?.ObjToString().ToSqlFilter());
|
||||
}
|
||||
return columnInfo.UpdateSql;
|
||||
}
|
||||
else if (columnInfo.SqlParameterDbType is Type && (Type)columnInfo.SqlParameterDbType == UtilConstants.SqlConvertType)
|
||||
|
Loading…
Reference in New Issue
Block a user