Understanding The navigation '...' was ignored from 'Include' in the query since the fix-up will automatically populate it...
and dealing with it
#24924
Labels
Ask a question
Edit:
related info -
#24225
#23674
Hello,
I'm receiving this warning since updating to 5.0.6 (think it was from 5.0.2):
I'm not sure I understand it.
My models are
PurchasingRecord
which has manyPurchasingRecordLine
s which have manyPurchasingRecordLineAction
s. Every entity has also a navigation to the parent.When querying - it looks like this:
Questions and concerns:
.Include(r => r.Lines).ThenInclude(l => l.ContainingRecord)
is redundant sincel.ContainingRecord
is to be populated anyway. Is that correct?l.ContainingRecord
) is not being included - what should I do to include it?Thanks!
EF Core version: 5.0.6
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0.6
Operating system: W10 x64
IDE: Rider 2021.1
The text was updated successfully, but these errors were encountered: