Fabio,
i understand all of this and it is exactly as you described it BUT it will
hit the DB for the property 'Related' before i ever access it,
if it is marked as "no-proxy". The SQL output then shows two selects if i
call Session.Get...one for A and one for Related (B).
This is the point i don't understand.
If B is marked as "proxy" then the output shows only one select and the
second for Related is shown, if i access it for the first time.
Shouldn't the "DB hit" behaviour be the same for both markers?
I use version 3.0.
Am schrieb Fabio Maulo <[email protected]>:
the difference is the level of the proxy (as said at the begin).class A
{
B Related{get;set;}
}
With B marked as proxy NH will assign the property 'Related' with a proxy
With B marked as no-proxy NH will proxy the instance of class A and when
you will try to access to the property 'Related' it will it the DB and
will give you an instance of type B (not a proxy).
--
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.
--
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.