diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/DynamicBuilder/Master.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/DynamicBuilder/Master.cs index b20a5ea6c..2d3fe8933 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/DynamicBuilder/Master.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/DynamicBuilder/Master.cs @@ -53,15 +53,7 @@ namespace SqlSugar if (propertyInfo != null) { - // 如果找到了该属性,则将其值设置为字典中对应的值 - if (pair.Value == null||UtilMethods.GetUnderType( propertyInfo.PropertyType)==UtilConstants.GuidType) - { - propertyInfo.SetValue(obj, UtilMethods.ChangeType2(pair.Value, propertyInfo.PropertyType)); - } - else - { - propertyInfo.SetValue(obj, Convert.ChangeType(pair.Value, propertyInfo.PropertyType)); - } + propertyInfo.SetValue(obj, UtilMethods.ChangeType2(pair.Value, propertyInfo.PropertyType)); } }