<bag lazy="extra" ...> Diego
On Mon, Apr 26, 2010 at 09:38, Afshar Mohebbi <[email protected]>wrote: > Where must I insert lazy="extra"? in a bag? > > Afshar Mohebbi > > On Apr 26, 2:28 pm, Diego Mijelshon <[email protected]> wrote: > > By default, collections are lazily loaded all at once. > > But there's a configuration option, lazy="extra" which does something > > similar to what you just wrote. > > > > Diego > > > > On Mon, Apr 26, 2010 at 08:16, Afshar Mohebbi <[email protected] > >wrote: > > > > > > > > > Hi all, > > > > > I know lazy loading acts on object not properties. I also know NH > > > supports lazy loading in collections. But is lazy loading is acting on > > > a whole collection or on each member of it? > > > > > For example assume there are 2 classes named Order and OrderItem. > > > Order has a collection of OrderItem. With following code all > > > collections will be loaded or just a specific one? > > > > > Order order = LoadOrder(); > > > OrderItem item = (OrderItem)order.items[3]; //assuming there are more > > > 4 OrderItem at least. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "nhusers" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<nhusers%[email protected]> > <nhusers%[email protected]<nhusers%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/nhusers?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > "nhusers" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/nhusers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
