mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update util method
This commit is contained in:
parent
127cc65a15
commit
005065296a
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user