NHibernate Eager Fetching Over Multiple Levels

后端 未结 5 1795
野的像风
野的像风 2020-12-12 22:53

I have a 3-leveled hierarchy of entities: Customer-Order-Line, which I would like to retrieve in entirety for a given customer, using ISession.Get(id). I have the following

5条回答
  •  时光说笑
    2020-12-12 23:38

    @Tigraine: your query only returns Post with Comments. This brings All posts with all Comments (2 levels). What Ben asking is Customer to Order To LineItem (3 level). @Ben: to my knowledge nHibernate doesn't support eager loading upto 3 level yet. Hibernate does support it thou.

提交回复
热议问题