2009/5/29 Plácido Bisneto <[email protected]> > > if both approachs uses the mapping file as reference to map the > resultset to object, why is the .Load<T> method throwing the > exception: Could not load the proxy. No session. ? >
For various reasons.1) The first is that you are closing the session immediately after Load that mean you can't use the "loaded instance" any more 2) you are working with the anti-pattern named session-per-call If you want continue using session-per-call you should use session.Get<T> instead Load<T> -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
