Closed occulter closed 1 year ago
@occulter This looks like #29632. Are you using SQLite?
Thanks for answering me. But what I used is Mysql , the provider Nuget pack is Pomeo.EntityFrameWorkCore.Mysql (version: 7.0.0 ) in whose release notes shows support to JSON COLUMN
@occulter the new ToJson support released in EF Core 7.0 currently only works for SQL Server. The Pomelo MySQL provider has its own JSON support - check their docs for more details (/cc @lauxjpn).
Note from triage: generate a better exception message.
@occulter You can find some Pomelo JSON mapping scenario sample code in https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/14#issuecomment-725257107.
Note from triage: closing since SQLite is now supported.
I follow the sample almost completely , but it report the null reference..
p.s
Once I Delete the lines that contains ***.ToJson() , everything will be ok.
Please help, thanks
My Code
Include stack traces
Include the full exception message and stack trace for any exception you encounter.
Use triple-tick fences for stack traces. For example:
Include verbose output
Please include
--verbose
output when filing bugs about thedotnet ef
or Package Manager Console tools.Use triple-tick fences for tool output. For example:
Include provider and version information
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) Target framework: (e.g. .NET 6.0) Operating system: IDE: (e.g. Visual Studio 2022 17.4)