Skip to content
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

How would jsonb evolve to EF 8.0? #2723

Closed
khteh opened this issue Apr 18, 2023 · 5 comments
Closed

How would jsonb evolve to EF 8.0? #2723

khteh opened this issue Apr 18, 2023 · 5 comments

Comments

@khteh
Copy link

khteh commented Apr 18, 2023

Before submitting

According to https://www.npgsql.org/efcore/mapping/json.html?tabs=fluent-api%2Cpoco#querying-json-columns how would migration to EF 8.0 look like if I use jsonb column type now in EF 7.0? Any thought on this? Thanks.

@khteh khteh changed the title How would jsonb evolve to EF 8.0? How would jsonb evolve to EF 8.0? Apr 18, 2023
@roji roji transferred this issue from npgsql/npgsql Apr 18, 2023
@roji
Copy link
Member

roji commented Apr 18, 2023

There are indeed plans to align the PG provider JSON support align with the new EF Core 7.0 JSON support (#2548), but overall I'd expect code that currently works to keep working. I'll definitely do my best to maintain backwards compatibility.

@khteh khteh closed this as completed Apr 18, 2023
@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2023
@khteh
Copy link
Author

khteh commented Apr 25, 2023

Does the Data Annotation support List instead of []?

@roji
Copy link
Member

roji commented Apr 25, 2023

@khteh I don't understand what you mean, which data annotation?

@khteh
Copy link
Author

khteh commented Apr 25, 2023

https://www.npgsql.org/efcore/mapping/json.html?tabs=data-annotations%2Cpoco#querying-json-columns

 [Column(TypeName = "jsonb")]
    public Products[]? Products { get; set;}

Does it support List<Product>?

@roji
Copy link
Member

roji commented Apr 25, 2023

Easiest is to just give it a try, rather than asking!

Yes, it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants