Exception when writing a JSON column with negative enum value #32679
Labels
area-type-mapping
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
When EF try writing a JSON document that contains negative enum value, an System.OverflowException is thrown.
Test project: https://github.com/MoryakSPb/EfEnumJson
Stack trace:
Provider and version information
EF Core version: 8.0.0
Database provider: Microsoft.EntityFrameworkCore.Sqlite
(actual for Npgsql.EntityFrameworkCore.PostgreSQL also)
Target framework: .NET 8.0.0
Operating system: Windows 11 22H2 (22621.2861)
IDE: Visual Studio 2022 17.8.3
The text was updated successfully, but these errors were encountered: