Migration ignores Fluent API configuration via IEntityTypeConfiguration #34674
Labels
area-model-building
closed-no-further-action
The issue is closed and no further action is planned.
customer-reported
.NET 8
Microsoft.EntityFrameworkCore 8.0.8
Microsoft.EntityFrameworkCore.Design 8.0.8
Microsoft.EntityFrameworkCore.Tools 8.0.8
Npgsql.EntityFrameworkCore.PostgreSQL 8.0.4
Code First approach.
Entity
Configuration
Add-Migration resulted in following Migration file:
Missing
DbContext implementation
Hence Database creation fails already.
Fixing the migration Up/Down methods does the work only partially. Fixing the migration file can help to mitigate the database creation error, however doesn't solve the Database interaction.
Following method results in error:
The database logged the following error:
ERROR: relation "Attempt" does not exist at character 13
Using Data Annotation on the Entity will help with the navigation though.
The text was updated successfully, but these errors were encountered: