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