-
Notifications
You must be signed in to change notification settings - Fork 228
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
Errors compiling optimized DbContext that contains fixed length property #2974
Comments
I get the same error and also "'NpgsqlCharacterStringTypeMapping' does not contain a definition for 'EqualsWithoutTrailingWhitespace'" |
I'm not sure whether the authors ignoring us, but meanwhile I have the following "polyfill" that can be added to the project to resolve the problem: https://gist.github.com/miegir/63961ebdc117ed74e1dd79a5f5afd190. |
@miegir definitely not ignoring you, but there's a massive amount of work going on. I'll try to get to this for 8.0.1 or 8.0.2 at the latest. |
Hi @roji, not sure if this helps but it seems to occur on properties that have IsFixedLength", true |
Thank you so much! I placed the class in the same namespace as my optimized model and it has resolved my errors. My naïve PR for this problem would be to simply make the |
I ran into this as well on the brand new 8.0.2 just a heads up to anyone trying to make compiled models |
+1, Just ran into it today on 8.0.2 |
Fixed in 51faf6e |
Steps to reproduce:
dotnet ef console
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet new tool-manifest
dotnet tool install dotnet-ef
dotnet ef dbcontext optimize
dotnet build
Expected behavior: the application will compile.
Actual behavior: compilation errors:
This technique worked with
Npgsql.EntityFrameworkCore.PostgreSQL
version 7.0 but stopped working with 8.0 in which these methods were removed.The text was updated successfully, but these errors were encountered: