update core

This commit is contained in:
sunkaixuna 2021-12-29 11:54:54 +08:00
parent e8c8256a98
commit da980755b2

View File

@ -293,6 +293,17 @@ namespace SqlSugar
return null;
}
object value = dr.GetValue(i);
if (value != null)
{
if (value.GetType() == UtilConstants.DecType)
{
value = Convert.ToUInt32(value);
}
else if (value.GetType() == UtilConstants.StringType)
{
return (T)Enum.Parse(typeof(T), value.ObjToString());
}
}
T t = (T)Enum.ToObject(typeof(T), value);
return t;
}