0
有人可以告訴我NHibernate使用什麼延遲加載策略?各種來源提供了相互矛盾的信息 - this one表示NHibernate不提供屬性的延遲加載,而NHibernate in Action讀取默認情況下啓用了延遲提取。我錯過了什麼嗎?無法弄清楚NHibernate使用什麼延遲加載策略
有人可以告訴我NHibernate使用什麼延遲加載策略?各種來源提供了相互矛盾的信息 - this one表示NHibernate不提供屬性的延遲加載,而NHibernate in Action讀取默認情況下啓用了延遲提取。我錯過了什麼嗎?無法弄清楚NHibernate使用什麼延遲加載策略
我不是專家,但我認爲這本書意味着集合屬性的延遲加載。至於其他屬性,nhibernate確實支持它們,但它可能還沒有發佈: NHibernate new feature: Lazy Properties
以及關聯?從我瞭解到的情況來看,他們默認情況下是懶加載的? – chester89 2010-03-28 19:20:32
是的,默認情況下它們以懶惰的方式加載:http://nhforge.org/doc/nh/en/index.html#collections-mapping – Giorgi 2010-03-28 19:32:37