"unnecessary rows" controller is not comparing similar queries
bennage opened this issue · comments
Christopher Bennage commented
var salesPersons = await context.SalesPersons
.Include(sp => sp.SalesOrderHeaders) // This include forces eager loading.
.ToListAsync();
should match
var query = from sp in context.SalesPersons
from soh in sp.SalesOrderHeaders
select soh.TotalDue;
Matt Johnson-Pint commented
@bennage - Let's discuss this tomorrow. Thanks.
Matt Johnson-Pint commented
As discussed in standup, I'll fix this and re-run the tests.
Matt Johnson-Pint commented
The code has been updated and tests have been re-ran. The documentation still needs to be updated to reflect the changes. @JohnPWSharp - Please update the docs. Thanks!
Christopher Bennage commented
Did I close this by merging the pr? 😕
Matt Johnson-Pint commented
Yes, since I said "fixes" with the issue number.
Reopening until docs are updated.
Christopher Bennage commented
The doc looks updated to me.