diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs index 3f4992bec..eb3763112 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs @@ -198,6 +198,10 @@ namespace SqlSugar { method = isNullableType ? getConvertInt32 : getInt32; } + else if (bindPropertyType == UtilConstants.ByteType) + { + method = isNullableType ? getConvertByte : getByte; + } else if (bindPropertyType == UtilConstants.StringType) { method = getString;