mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Update : Select(it=>it.nullable<enum>)
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