2012/9/27 Arman <[email protected]> > Hello, > > I am using Fluent Nhibernate 1.3 with Nhibernate 3.3.1 with SQlite > database. > > Today i found out that no proxy is using at all when a lazy-collection > loaded. > > I have a User object that it have an IList of Order object. User has a > Orders collection in it that is lazy. (be default all the one-to-many is > lazy) > > when i access User.Orders , nhibernate load all of its orders correctly > and completely, but none of loaded objects is proxified. i mean loaded > objects is pure objects not a proxy of that object. >
NHibernate has at this point loaded all the data to create the Order instances - why bother instantiating proxies for them? That would only create additional work. > this result in full update query when i call Session.SaveOrUpdate later, > and full row update is not necessary at all and it takes long time too. > Are you detaching the objects from the session in which they were loaded? /Oskar -- 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.
