9 ms·
In EF line expression you can easily specify which navigation should be Eager loaded. var customersWithOrderDetail = context.Customers.Include("Orders").ToList
by skyde 3y ago
In EF line expression you can easily specify which navigation should be Eager loaded.
var customersWithOrderDetail = context.Customers.Include("Orders").ToList();
Would generate :
SELECT *
FROM Customers JOIN Orders ON Customers.Id = Orders.CustomerId
- boxed 3y agoImo the issue isn't that it's hard or easy to fix. The issue is that you might not be aware that you need to fix it. The awareness is the key imo. That's what iommi's tool gives you out of the box.