mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 01:46:18 +08:00
MySql InsertRange Byte[] empty
This commit is contained in:
parent
b8257a3368
commit
76e7fde1bb
@ -54,6 +54,10 @@ namespace SqlSugar
|
||||
else if (type == UtilConstants.ByteArrayType)
|
||||
{
|
||||
string bytesString = "0x" + BitConverter.ToString((byte[])value).Replace("-", "");
|
||||
if (bytesString == "0x")
|
||||
{
|
||||
bytesString = "0x00";
|
||||
}
|
||||
return bytesString;
|
||||
}
|
||||
else if (type.IsEnum())
|
||||
|
@ -149,6 +149,10 @@ namespace SqlSugar
|
||||
else if (type == UtilConstants.ByteArrayType)
|
||||
{
|
||||
string bytesString = "0x" + BitConverter.ToString((byte[])value).Replace("-", "");
|
||||
if (bytesString == "0x")
|
||||
{
|
||||
bytesString = "0x00";
|
||||
}
|
||||
return bytesString;
|
||||
}
|
||||
else if (type.IsEnum())
|
||||
|
Loading…
Reference in New Issue
Block a user