mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
-
This commit is contained in:
@@ -168,7 +168,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
|
string bytesString = "0x" + BitConverter.ToString((byte[])value);
|
||||||
return "N'" + bytesString + "'";
|
return "N'" + bytesString + "'";
|
||||||
}
|
}
|
||||||
else if (type.IsEnum())
|
else if (type.IsEnum())
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
|
string bytesString = "0x" + BitConverter.ToString((byte[])value);
|
||||||
return "N'" + bytesString + "'";
|
return "N'" + bytesString + "'";
|
||||||
}
|
}
|
||||||
else if (type.IsEnum())
|
else if (type.IsEnum())
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
|
string bytesString = "0x" + BitConverter.ToString((byte[])value);
|
||||||
return "N'" + bytesString + "'";
|
return "N'" + bytesString + "'";
|
||||||
}
|
}
|
||||||
else if (type == UtilConstants.BoolType)
|
else if (type == UtilConstants.BoolType)
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
|
string bytesString = "0x" + BitConverter.ToString((byte[])value);
|
||||||
return "N'" + bytesString + "'";
|
return "N'" + bytesString + "'";
|
||||||
}
|
}
|
||||||
else if (type == UtilConstants.BoolType)
|
else if (type == UtilConstants.BoolType)
|
||||||
|
|||||||
Reference in New Issue
Block a user