i have another website with nhibernate 3.1 , and in any situation it load's 
proxified object instead of pure objects.

and no, i did not detach object from session, my project is an ASP.Net c# 
project with session-per-request approach. so objects loaded is attached to 
a session.



On Thursday, September 27, 2012 11:54:08 AM UTC+3:30, Arman wrote:
>
> 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 ?!
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/Ws0lEFEkkdEJ.
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.

Reply via email to