mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update enum
This commit is contained in:
@@ -60,7 +60,14 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (type.IsEnum())
|
else if (type.IsEnum())
|
||||||
{
|
{
|
||||||
return Convert.ToInt64(value);
|
if (this.Context.CurrentConnectionConfig.MoreSettings?.TableEnumIsString == true)
|
||||||
|
{
|
||||||
|
return value.ToSqlValue();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Convert.ToInt64(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user