|
|
@ -176,7 +176,8 @@ namespace SqlSugar |
|
|
|
MethodInfo method = null; |
|
|
|
Type bindPropertyType = UtilMethods.GetUnderType(columnInfo.PropertyInfo, ref isNullableType); |
|
|
|
string dbTypeName = UtilMethods.GetParenthesesValue(DataRecord.GetDataTypeName(ordinal)); |
|
|
|
if (dbTypeName.IsNullOrEmpty()) { |
|
|
|
if (dbTypeName.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
dbTypeName = bindPropertyType.Name; |
|
|
|
} |
|
|
|
string propertyName = columnInfo.PropertyName; |
|
|
@ -264,7 +265,8 @@ namespace SqlSugar |
|
|
|
method = isNullableType ? getConvertDouble : getDouble; |
|
|
|
else |
|
|
|
method = isNullableType ? getConvertFloat : getFloat; |
|
|
|
if (dbTypeName.Equals("float",StringComparison.CurrentCultureIgnoreCase) && isNullableType && bindProperyTypeName.Equals("single",StringComparison.CurrentCultureIgnoreCase)) { |
|
|
|
if (dbTypeName.Equals("float", StringComparison.CurrentCultureIgnoreCase) && isNullableType && bindProperyTypeName.Equals("single", StringComparison.CurrentCultureIgnoreCase)) |
|
|
|
{ |
|
|
|
method = getConvertDoubleToFloat; |
|
|
|
} |
|
|
|
if (bindPropertyType == UtilConstants.DecType) |
|
|
|