Skip to content
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

BUG002: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning' #7

Closed
ohshie opened this issue Nov 17, 2024 · 0 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@ohshie
Copy link
Owner

ohshie commented Nov 17, 2024

On service startup getting:
Unhandled exception. System.InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'NneDbContext' 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'.
fix described here: dotnet/efcore#34431

@ohshie ohshie self-assigned this Nov 17, 2024
@ohshie ohshie added the bug Something isn't working label Nov 17, 2024
@ohshie ohshie linked a pull request Nov 17, 2024 that will close this issue
@ohshie ohshie closed this as completed in #8 Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant