mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-18 05:59:34 +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());
|
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[])
|
else if (item.Value is byte[])
|
||||||
{
|
{
|
||||||
result = result.Replace(item.ParameterName, "0x" + BitConverter.ToString((byte[])item.Value));
|
result = result.Replace(item.ParameterName, "0x" + BitConverter.ToString((byte[])item.Value));
|
||||||
|
Loading…
Reference in New Issue
Block a user