-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using json type to serialize data #106
Comments
Nope, that won't work - nobody knows how to magically convert your Address class into a PostgreSQL json column. This would be similar to dotnet/efcore#4021. If you don't really care about JSON but just want to store a class/struct in a PostgreSQL column, you may want to look at composite support - that's not working yet either but will very probably make it into the 1.1.0 release. Am going to close this as it needs attention in a more EFCore general way and not just in Npgsql. |
Hi @roji ! Is your resolution for this issue still actual?
I mean, in the light of this new feature http://www.npgsql.org/doc/types/jsonnet.html - supporting JSON.NET serialization, and new versions of EF Core, have things been changed somehow? Thanks! |
dotnet/efcore#5868
Does this scenario supported by Npgsql.EntityFrameworkCore.PostgreSQL?
I run
Add-Migrations
and this command produce few fields(Address_Stree, Address_Country
) instead one for serialized data:The text was updated successfully, but these errors were encountered: