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.
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.
i should mention that i am using SQLiteConfiguration.Standard, every one-to-many and many-to-one relations is lazyload.
What's wrong ?!
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.
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.
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.
All of my class is marked with dynamicupdate() too.i think because nhibernate does not use proxy , so it cannot find with property is dirty and which one is not. so it updates all of its property and all of its relations properties.