diff --git a/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs index 853d3c2fb..7f090438d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs @@ -750,6 +750,10 @@ namespace SqlSugar } public static object ChangeType2(object value, Type type) { + if (value is byte[]&&type==UtilConstants.StringType) + { + return Encoding.UTF8.GetString(value as byte[]); + } if (value == null && type.IsGenericType) return Activator.CreateInstance(type); if (value == null) return null; if (type == value.GetType()) return value;