mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -699,9 +699,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
addItem = addItem.ObjToInt();
|
addItem = addItem.ObjToInt();
|
||||||
}
|
}
|
||||||
else if (prop.PropertyType.IsEnum() && addItem is decimal)
|
else if (UtilMethods.GetUnderType(prop.PropertyType).IsEnum() && addItem is decimal)
|
||||||
{
|
{
|
||||||
addItem = Convert.ToInt64(addItem);
|
if (prop.PropertyType.IsEnum() == false && addItem == null)
|
||||||
|
{
|
||||||
|
//Future
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
addItem = Convert.ToInt64(addItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
result.Add(name, addItem);
|
result.Add(name, addItem);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user