我想保留一个实体,由用户在几页开会时配置。 该实体配备了NHibernate,其一些特性/收集材料已上载。 Say:
- Session["order"] = new Order(productRepository.Get(id))
- on some next page, get Session["order"] and now work with it
但是,此时此刻,科索沃是一家之主,但其产品(和nes子)却被打破,因为它们在不同届会上重新装载酶。
Is it possible to tell NHibernate that I want to eager-load my transient order s properties to the deepest level? Or, the only solution will be to eager-load at the time of productRepository.Get(id) ? Like, Session.LoadNestedProperties(order, Eager);