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

Bug. Ef Core cannot translate postgresql Array functions when used optimized EF Core Model #3168

Closed
megafetis opened this issue May 14, 2024 · 3 comments

Comments

@megafetis
Copy link

Whe i use Optimized DbContext:
dotnet ef dbcontext optimize --context MainDbContext
Postgresql array functions cannot translate to sql:

image

I tried to use many funtions from documentation https://www.npgsql.org/efcore/mapping/array.html.
Works only this: String.Join(separator, array)
I use NET 8

@roji
Copy link
Member

roji commented May 14, 2024

@megafetis please post a minimal, runnable console program that shows the problem. Screenshots of partial code snippets aren't helpful.

@megafetis
Copy link
Author

@megafetis please post a minimal, runnable console program that shows the problem. Screenshots of partial code snippets aren't helpful.

@roji Hello, take a link to test app:
https://github.com/megafetis/NpgsqlEfCoreBugConsoleApp1

@roji
Copy link
Member

roji commented Nov 5, 2024

Thanks for providing the repro, and sorry it took so long to get around to investigating this. This indeed turned out to be a real bug on the EF side - I've opened dotnet/efcore#35047 to track addressing it there.

@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
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