mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -382,6 +382,10 @@ namespace SqlSugar
|
||||
{
|
||||
result.Add((T)Enum.Parse(type, value.ObjToString()));
|
||||
}
|
||||
else if (value!=null&&UtilMethods.GetUnderType(type).IsEnum)
|
||||
{
|
||||
result.Add((T)Enum.Parse(UtilMethods.GetUnderType(type), value.ObjToString()));
|
||||
}
|
||||
else
|
||||
{
|
||||
result.Add((T)UtilMethods.ChangeType2(value, type));
|
||||
|
Reference in New Issue
Block a user