-
Notifications
You must be signed in to change notification settings - Fork 2k
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
EF Core 6 breaking change list does not include a new exception #4315
Comments
As far as I can tell, it was throwing in 5.0 as well. Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate. |
@ajcvickers thanks for the response - that's interesting, it's possible we're picking it up from somewhere else. I've gone ahead and pushed a small project repo to reproduce - https://github.com/DillonN-build/ef-core-exception-test. This is using .NET 6 and testing Microsoft.EntityFameworkCore.Sqlite 5.x vs 6.x. var results = await dbContext.Parents
.Include(p => p.Children).ThenInclude(c => c.Parent)
.ToListAsync(); I was getting some intermittent behaviour when testing this locally that I think is down to NuGet caching. I added a GitHub Actions workflow to the repo to test in a more sterile environment. You can see the results in this run. To summarize the results for different Microsoft.EntityFameworkCore.Sqlite versions:
Note I've also been able to reproduce with Pomelo.EntityFrameworkCore.MySql (where I originally came across this), but figured SQLite would be a preferrable example to test with |
@DillonN-build Thanks for the repro. Note for triage: we made this throw by default at some point, but it is not documented as a breaking change anywhere I can find. |
After upgrading EF Core from 5.0.17 to 6.0.15, it looks like the event ID
CoreEventId.NavigationBaseIncludeIgnored
now throws an exception by default. However I can't find anywhere that this change is documented. Maybe I'm missing something here, but I think the breaking change page should cover it?Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: