-
Notifications
You must be signed in to change notification settings - Fork 214
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
EF Core 8 generating compiled model fails #2871
Comments
@roji Following up on this just in case as it still repros on latest efcore daily build and npgsql rc2 |
I got same problem with rc2, during
So it seems to still be the issue. |
Thanks for raising this - I'll take a look at this before the 8.0 release. |
Having same issue with this type 'NpgsqlTimestampTzTypeMapping' after upgrading to NET 8 GA (except Npgsql.EntityFrameworkCore.PostgreSQL at rc2) when running dotnet ef dbcontext optimize
|
System.InvalidOperationException: The type mapping used is incompatible with a compiled model. The mapping type must have a 'public static readonly NpgsqlTimestampTypeMapping NpgsqlTimestampTypeMapping.Default' property. Me too. Similar problem |
Compiled model support has been added for most type mappings; some mappings require additional complexity, I've split that out for now (#2949). |
Generating compiled models fails for many types in the entity, for example a property with the type double gives the following error:
This happens with many other types like DateTime, DateTimeOffset, etc.
Minimal repro:
Then try creating a compiled model
Stacktrace:
Provider and version information
EF Core version: 8.0.0-rc.1.23419.6
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL
Target framework: .NET 8.0
Operating system: macOS Ventura
IDE: JetBrains Rider 2023.2.1
The text was updated successfully, but these errors were encountered: