mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
457df6b147
commit
80852ef15f
@ -122,7 +122,7 @@ namespace OrmTest.Models
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public double Float1 {get;set;}
|
||||
public float Float1 {get;set;}
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
|
@ -253,10 +253,8 @@ namespace SqlSugar
|
||||
case CSharpDataType.@float:
|
||||
case CSharpDataType.@double:
|
||||
CheckType(bind.DoubleThrow, bindProperyTypeName, validPropertyName, propertyName);
|
||||
if (bindProperyTypeName == "double")
|
||||
if (bindProperyTypeName.IsIn( "double", "single"))
|
||||
method = isNullableType ? getConvertDouble : getDouble;
|
||||
if (bindProperyTypeName == "single")
|
||||
method = isNullableType ? getConvertFloat : getFloat;
|
||||
break;
|
||||
case CSharpDataType.Guid:
|
||||
CheckType(bind.GuidThrow, bindProperyTypeName, validPropertyName, propertyName);
|
||||
|
Loading…
Reference in New Issue
Block a user