mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-07 23:24:34 +08:00
Update exp to sql
This commit is contained in:
@@ -904,7 +904,7 @@ namespace SqlSugar
|
|||||||
if(sql.Contains(replace))
|
if(sql.Contains(replace))
|
||||||
{
|
{
|
||||||
var value = columnInfo.PropertyInfo.GetValue(item);
|
var value = columnInfo.PropertyInfo.GetValue(item);
|
||||||
var newValue = "null";
|
string newValue = null;
|
||||||
if (value != null)
|
if (value != null)
|
||||||
{
|
{
|
||||||
if (UtilMethods.IsNumber(columnInfo.UnderType.Name))
|
if (UtilMethods.IsNumber(columnInfo.UnderType.Name))
|
||||||
@@ -953,6 +953,10 @@ namespace SqlSugar
|
|||||||
if (columnInfo.SqlParameterDbType is System.Data.DbType type && type == System.Data.DbType.AnsiString)
|
if (columnInfo.SqlParameterDbType is System.Data.DbType type && type == System.Data.DbType.AnsiString)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(newValue==null)
|
||||||
|
{
|
||||||
|
newValue = "null";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -960,7 +964,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sql = sql.Replace(replace, newValue);
|
sql = sql.Replace(replace, newValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.Append(sql);
|
sb.Append(sql);
|
||||||
|
Reference in New Issue
Block a user