I know I can go one step deeper to load related data using ThenInclude in Eager Loading like below example
//Eager Loading
var publisher = await _context.Publishers
.Include(pub => pub.Books)
.ThenInclude(book => book.Sales)
.Include(pub => pub.Users)
.Where(pub => pub.PubId == id)
.FirstOrDefaultAsync();
How can I write the same query in Explicit Loading? How do I load data for Sales without looping through books in below case?
//Explicit Loading
var publisher = await _context.Publishers
.SingleAsync(pub => pub.PubId == id);
_context.Entry(publisher)
.Collection(pub => pub.Books)
.Load();
_context.Entry(publisher)
.Collection(pub => pub.Users)
.Load();