mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Update Dynamic To List
This commit is contained in:
@@ -699,10 +699,17 @@ namespace SqlSugar
|
||||
{
|
||||
addItem = addItem.ObjToInt();
|
||||
}
|
||||
else if (prop.PropertyType.IsEnum() && addItem is decimal)
|
||||
else if (UtilMethods.GetUnderType(prop.PropertyType).IsEnum() && addItem is decimal)
|
||||
{
|
||||
if (prop.PropertyType.IsEnum() == false && addItem == null)
|
||||
{
|
||||
//Future
|
||||
}
|
||||
else
|
||||
{
|
||||
addItem = Convert.ToInt64(addItem);
|
||||
}
|
||||
}
|
||||
result.Add(name, addItem);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user