mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-30 04:32:05 +08:00
Synchronization code
This commit is contained in:
parent
671567d9a9
commit
ad799406ec
@ -44,7 +44,7 @@ namespace SqlSugar
|
||||
FieldName = item.LeftEntityColumn.DbColumnName,
|
||||
ConditionalType = ConditionalType.Equal,
|
||||
FieldValue = item.RightEntityColumn.PropertyInfo.GetValue(model).ObjToString(),
|
||||
CSharpTypeName = item.RightEntityColumn.PropertyInfo.PropertyType.Name
|
||||
CSharpTypeName =UtilMethods.GetUnderType(item.RightEntityColumn.PropertyInfo.PropertyType).Name
|
||||
}));
|
||||
i++;
|
||||
}
|
||||
|
@ -782,6 +782,10 @@ namespace SqlSugar
|
||||
CSharpTypeName = ctypename,
|
||||
FieldValue = value
|
||||
};
|
||||
if (item.FieldValue == string.Empty && item.CSharpTypeName.HasValue() && !item.CSharpTypeName.EqualCase("string"))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (item.CSharpTypeName.EqualCase(UtilConstants.DecType.Name))
|
||||
{
|
||||
return Convert.ToDecimal(item.FieldValue);
|
||||
|
Loading…
Reference in New Issue
Block a user