diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 73bc17fda..44e4dbed8 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -539,6 +539,11 @@ namespace SqlSugar FieldValue = value.ObjToStringNew(), CSharpTypeName = column.PropertyInfo.PropertyType.Name }); + if(value is Enum&&this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString!=true) + { + data.Value.FieldValue = Convert.ToInt64(value).ObjToString(); + data.Value.CSharpTypeName = "int"; + } //if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL) //{ // data.Value.FieldValueConvertFunc = it =>