you should only have a 1 instance of the session factory in your application. If you are creating a new session factory with each postback then your not using NH correctly. Here is an example of the basic setup http://ayende.com/Blog/archive/2009/08/06/challenge-find-the-bug-fixes.aspx.
On Aug 13, 4:43 am, Yusuf Nar <[email protected]> wrote: > hi, > > is there any way for managing and preventing repeated usages of classess > like ISessionFactory and Configuration.. > > in every .aspx i have to define classes and initialize instanceses.. > > thanks for replies. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
