¡@

Home 

c# Programming Glossary: inventoryitem

How do you construct a LINQ to Entities query to load child objects directly, instead of calling a Reference property or Load()

http://stackoverflow.com/questions/315966/how-do-you-construct-a-linq-to-entities-query-to-load-child-objects-directly-in

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.. 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.. in this Shaping query results article. var item from InventoryItem item in db.Inventory.Include ItemTypeReference .Include OrderLineItems..