mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -606,9 +606,9 @@ namespace SqlSugar
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (value is byte[] && destinationType == typeof(char))
|
else if (value is byte[] bytes&&bytes.Length==1&& destinationType == typeof(char))
|
||||||
{
|
{
|
||||||
return (char)((byte[])value)[0];
|
return (char)(bytes)[0];
|
||||||
}
|
}
|
||||||
var destinationConverter = TypeDescriptor.GetConverter(destinationType);
|
var destinationConverter = TypeDescriptor.GetConverter(destinationType);
|
||||||
if (destinationConverter != null && destinationConverter.CanConvertFrom(value.GetType()))
|
if (destinationConverter != null && destinationConverter.CanConvertFrom(value.GetType()))
|
||||||
|
Reference in New Issue
Block a user