C
C#2w ago
workani

✅ EF PendingModelChanges Issue

Hi. I’ve tried to integrate Authentication with JWT into my asp.net web api and after that started to get this error. Already tried to remove /create new migrations, drop database, delete ApplicationDbSnapshot but none of it helped. Would be grateful for help.
System.InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'ApplicationDbContext' has pending changes. Add a new migration before updating the database. This exception can be suppressed or logged by passing event ID 'RelationalEventId.PendingModelChangesWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.
System.InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'ApplicationDbContext' has pending changes. Add a new migration before updating the database. This exception can be suppressed or logged by passing event ID 'RelationalEventId.PendingModelChangesWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server