This commit is contained in:
sunkaixuan
2017-11-10 14:50:20 +08:00
parent 517c93aa63
commit c6ceb6116c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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