This commit is contained in:
sunkaixuan
2017-11-10 15:09:23 +08:00
parent c6ceb6116c
commit 0e4822cc12
6 changed files with 8 additions and 8 deletions

View File

@@ -169,7 +169,7 @@ namespace SqlSugar
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
return bytesString;
}
else if (type.IsEnum())
{

View File

@@ -262,7 +262,7 @@ namespace SqlSugar
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
return bytesString;
}
else if (type.IsEnum())
{

View File

@@ -112,7 +112,7 @@ namespace SqlSugar
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
return bytesString;
}
else if (type == UtilConstants.BoolType)
{

View File

@@ -61,7 +61,7 @@ namespace SqlSugar
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return "N'" + bytesString + "'";
return bytesString;
}
else if (type == UtilConstants.BoolType)
{

View File

@@ -58,8 +58,8 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
return "N'" + bytesString + "'";
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return bytesString;
}
else if (type == UtilConstants.BoolType)
{

View File

@@ -56,8 +56,8 @@ namespace SqlSugar
}
else if (type == UtilConstants.ByteArrayType)
{
string bytesString = System.Text.Encoding.ASCII.GetString((byte[])value);
return "N'" + bytesString + "'";
string bytesString = "0x" + BitConverter.ToString((byte[])value);
return bytesString;
}
else if (type == UtilConstants.BoolType)
{