Batch operation Byte[] BUG

This commit is contained in:
sunkaixuan
2018-05-11 16:44:51 +08:00
parent f6e387ea25
commit 665e998005
2 changed files with 2 additions and 2 deletions

View File

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

View File

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