diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs index 7012440d4..fbca06aa0 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs @@ -253,8 +253,10 @@ namespace SqlSugar case CSharpDataType.@float: case CSharpDataType.@double: CheckType(bind.DoubleThrow, bindProperyTypeName, validPropertyName, propertyName); - if (bindProperyTypeName.IsIn( "double", "single")) + if (bindProperyTypeName.IsIn( "double", "single")&&dbTypeName!="real") method = isNullableType ? getConvertDouble : getDouble; + else + method = isNullableType ? getConvertFloat : getFloat; break; case CSharpDataType.Guid: CheckType(bind.GuidThrow, bindProperyTypeName, validPropertyName, propertyName);