C#C
C#4y ago
1 reply
Stroniax

❔ EF Core Sql Server JsonDocument

I am trying to use Entity Framework Core to map and access a json column. With EF 7, I believe that is supported (via the the
ToJson(OwnedNavigationBuilder, string)
extension method). However, the value is not a consistent schema, so I cannot map a constant type. I want to use
JsonDocument
but am getting a number of errors, making me wonder if that is actually possible? The only documentation I can find referencing mapping a JsonDocument property is using npgsql, and I don't see any references to
JsonDocument
in the SQL Server EF core articles I am finding.
Was this page helpful?