mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Update .net framework project
This commit is contained in:
parent
d9a39650de
commit
dfe5c4c00a
@ -346,6 +346,10 @@ namespace SqlSugar
|
||||
{
|
||||
addValue = Convert.ToInt64(addValue);
|
||||
}
|
||||
else if (UtilMethods.GetUnderType(item.PropertyType).IsEnum()&& addValue is decimal)
|
||||
{
|
||||
addValue = Convert.ToInt64(addValue);
|
||||
}
|
||||
result.Add(name, addValue);
|
||||
}
|
||||
}
|
||||
@ -442,6 +446,10 @@ namespace SqlSugar
|
||||
{
|
||||
addItem = addItem.ObjToInt();
|
||||
}
|
||||
else if (prop.PropertyType.IsEnum()&&addItem is decimal)
|
||||
{
|
||||
addItem = Convert.ToInt64(addItem);
|
||||
}
|
||||
result.Add(name, addItem);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user