I'm new to using LINQ to Entities (or Entity Framework whatever they're calling it) and I'm writing a lot of code like this:
var item = (from InventoryItem item in db.Inventory
where item.ID == id
select item).First<InventoryItem>();
and then calling methods on that object like this:
var type = item.ItemTypeReference;
or
var orders = item.OrderLineItems.Load();
to retrieve child or related objects.
I haven't profiled the DB or dug too deeply but my guess is that when I call a .Load() or a *Reference property I'm actually making another call to the DB. If this is the case, is there any way to get those objects in my initial LINQ expression?