mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
Update SugarColums.Sql
This commit is contained in:
@@ -296,9 +296,16 @@ namespace SqlSugar
|
||||
else if (columnInfo.InsertSql.HasValue())
|
||||
{
|
||||
if (columnInfo.InsertSql.Contains("{0}"))
|
||||
{
|
||||
if (columnInfo.Value == null)
|
||||
{
|
||||
return string.Format(columnInfo.InsertSql, "null");
|
||||
}
|
||||
else
|
||||
{
|
||||
return string.Format(columnInfo.InsertSql, columnInfo.Value?.ObjToString().ToSqlFilter());
|
||||
}
|
||||
}
|
||||
return columnInfo.InsertSql;
|
||||
}
|
||||
else if (columnInfo.SqlParameterDbType is Type && (Type)columnInfo.SqlParameterDbType == UtilConstants.SqlConvertType)
|
||||
|
@@ -483,9 +483,16 @@ namespace SqlSugar
|
||||
else if (columnInfo.UpdateSql.HasValue())
|
||||
{
|
||||
if (columnInfo.UpdateSql.Contains("{0}"))
|
||||
{
|
||||
if (columnInfo.Value == null)
|
||||
{
|
||||
return string.Format(columnInfo.UpdateSql, "null");
|
||||
}
|
||||
else
|
||||
{
|
||||
return string.Format(columnInfo.UpdateSql, columnInfo.Value?.ObjToString().ToSqlFilter());
|
||||
}
|
||||
}
|
||||
return columnInfo.UpdateSql;
|
||||
}
|
||||
else if (columnInfo.SqlParameterDbType is Type && (Type)columnInfo.SqlParameterDbType == UtilConstants.SqlConvertType)
|
||||
|
Reference in New Issue
Block a user