Closed MatthewKinsman closed 1 year ago
It looks like the source of RelationalTypeMapping being null is ValueConvertorSelector.Select does not return a ValueConvertorInfo for System.Text.JsonElement meaning the RelationalTypeMapping from FindMappingWithConversion will be null
dupe of https://github.com/dotnet/efcore/issues/29632. JSON support for Sqlite is not available in 7. We plan to add it in the upcoming preview (work is already done). Support for JSON on Sqlite is tracked here: https://github.com/dotnet/efcore/issues/28816
I am not able to create a JSON column in my SQLite database using EntityFrameworkCore. Attached is a program that produces the problem but I am unable to get even the sample from the documentation repo to work. It appears no RelationalTypeMapping is returned for typeof(JsonElement) in RelationalModel.CreateTableMapping
EF Core version: 7.0.3 Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: .NET 6.0.4