mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-17 05:29:33 +08:00
Update Queryable.ToSqlString()
This commit is contained in:
parent
9c6e10e57e
commit
acb1bc3cb5
@ -823,6 +823,10 @@ namespace SqlSugar
|
||||
{
|
||||
result = result.Replace(item.ParameterName, item.Value.ObjToString());
|
||||
}
|
||||
else if (item.Value is DateTime)
|
||||
{
|
||||
result = result.Replace(item.ParameterName, "'"+item.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff")+"'");
|
||||
}
|
||||
else if (item.Value is byte[])
|
||||
{
|
||||
result = result.Replace(item.ParameterName, "0x" + BitConverter.ToString((byte[])item.Value));
|
||||
|
Loading…
Reference in New Issue
Block a user