You want to serialize the entire darn thing to disk and load the serialized configuration file instead of the nhibernate. All your mappings etc don't need to be validated etc if you do that. I recommend this file for reference: http://github.com/ayende/Effectus/blob/master/Effectus/Infrastructure/BootStrapper.cs
The whole article Ayende wrote about Effectus and Windows apps is awesome reading. Hope that helps -- Mikael On Tue, Feb 23, 2010 at 4:46 PM, reggieboy <[email protected]>wrote: > Hello guys, im working on winforms project using nhibernate > (obviously). Im having a problem during the startup of the application > its taking a little while to load the application. I think this is due > building the session factory, mappings and etc. I have a lot of > entity, that might have been the main problem. So im thinking of > configuring nhibernate asynchronously... Do any of you guys know what > is the best way to do this? Thank you > > -- > 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]<nhusers%[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.
