Order navigation properties when using Include and/or Select methods with EF 4.1 Code-First?

后端 未结 2 1149
半阙折子戏
半阙折子戏 2020-11-28 10:22

This is the second step of a question explained here: EF 4.1 code-first: How to load related data (parent-child-grandchild)?. With @Slauma\'s guidance, I have successfully

2条回答
  •  独厮守ぢ
    2020-11-28 10:47

    Have you try following?

    ...
    Select(from ch in c.children
           orderby ch.property desending
           select ch)
    ...
    

提交回复
热议问题