-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Problem with Expression index #18382
Comments
@WhoStoleMyNick - Are you using EF Core? I am not able to find any place in this codebase which throws exception message like that. |
Yep |
Which database provider? And which version? |
Npgsql.EntityFrameworkCore.PostgreSQL 2.2.4 |
Wrong project?( |
cc: @roji @WhoStoleMyNick - Are you using EF Core 2.2 or EF Core 3.0? |
2.2. I guess if i use 3.0 version of provider would be 3.0+ |
Was just making sure that we are not mixing package versions. Given the stack trace, it seems to me that the method is not just implemented (so again some issue in mixed package version), expression indices is just a warning and it is being skipped but something else is causing error. NpqSql provider repo would be correct place for this issue. |
Oops, i change target framework of csproj from 2.1 to 2.2 and get |
Context was generated with warn as expected. |
@WhoStoleMyNick yeah, as the exception message says, the Npgsql EF Core provider doesn't support expression indices in any way. This is tracked by npgsql/efcore.pg#119 and hopefully will happen one day. But you can still set them up via raw SQL in your migrations, so this shouldn't be blocking. |
I am triing to ensure that my context is synced with external schema. I am triing to scaffold context, but ef failed with error about expression index.
I can't drop that index because of ther reasons and i can't skip it (or i don't know how)
Could you pls provide some flag or method to complete scaffold with warning about skipped objects or allow to skip em manually?
i am usin "dotnet ef dbcontext scaffold" command
The text was updated successfully, but these errors were encountered: