asp.net mvc 3 - How do you load children AND grand-children of an entity?

前端 未结 4 1075
滥情空心
滥情空心 2021-01-16 11:21

I would like to know how to load multiple level of entities; more specifically how to load multiple level of descendants of a single entity. Here is an example I created. Su

4条回答
  •  情歌与酒
    2021-01-16 11:59

    I'm working on EF4.1 project at the moment. I don't need to specify anything - child objects get loaded automatically. I just need to invoke a property on that object.

    E.g.: customerObj.Address.County

提交回复
热议问题