Open AndrasHorinka opened 5 days ago
In the meantime I have learnt that is_valid
definition is incorrect as now()
is volatile, thus cannot be utilized in GENERATED ALWAYS AS
statements. Nevertheless, this would cause an issue upon executing the manually adjusted migration script (which I did not get to)
.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.