Skip to content

When reporting PendingModelChangesWarning, look into including information on the model discrepancy #35292

Description

@pdevito3

@roji as discussed in #35285 i was able to make a small project to reproduce the PendingModelChangesWarning and it's not even clear what the cause is (potentially my biggest gripe with this almost blocking error).

To repro, clone down this project and run the integration tests.

For background, all i have in my web api is a db context with one very simple entity (base entity doesn't even have a guid default).

The integration tests are setup with the TestFixture to spin up a testing db and run migrations. Each test then gets a service collection to use for testing. This has worked for years for me, but .NET 9 breaks it

If you want to run the web api, you can do a docker compose to spin up a PG db and just run the api project. Migrations will automatically apply

Happy to answer any questions or iterate ont his with you

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions