Hi there,
here is my class hierarchy:
class Bar
{
Int32 Id { ... }
}
class Foo
{
Int32 Id { ... }
Bar MyBar { ... }
}
Let's say I have:
ISessionFactory sf = ...;
var session = sf.OpenSession();
int fooId = ...;
var foo = sessio.Get<Foo>(fooId);
in this case foo.Bar isn't an actual Bar instance, but a proxy.
Sometimes, in my scenario, I need foo.Bar to be an actual Bas
instance, instead of a proxy. The only way I know is to use lazy="no
proxy" in the Foo's mapping file, but this will force my app to avoid
the proxy's loading in every case (and this is not what I want). So,
could you suggest me any other way?
thanks in advance (and sorry for my broken englis),
Giulio - Ascoli Piceno, Italia
--
--
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.