Update util method

This commit is contained in:
sunkaixuan 2022-08-18 22:01:16 +08:00
parent 127cc65a15
commit 005065296a

View File

@ -13,7 +13,7 @@ namespace SqlSugar
if (thisValue == null) return 0;
if (thisValue is Enum)
{
return (int)thisValue;
return Convert.ToInt32(thisValue);
}
if (thisValue != null && thisValue != DBNull.Value && int.TryParse(thisValue.ToString(), out reval))
{