Model compilation question

18 views
Skip to first unread message

Kolli Ayyappa

unread,
Jul 20, 2021, 12:52:02 PM7/20/21
to nhu...@googlegroups.com
Hi,

We have model with 300 tables. When initially getting session from session factory taking bit time due compile mode and validate model.how can we improve this session getting. Please share any suggestions.

Currently code like below

  if (_sessionFactory == null)

            {

                NHibernate.Cfg.Configuration config =default(NHibernate.Cfg.Configuration);

              

                    config = new NHibernate.Cfg.Configuration();

 

                    config.Configure();

                    config.AddAssembly("DomainMOdel");

 

                _sessionFactory = config.BuildSessionFactory();

 

 

            }


Thanks,
Ayyappa 

Paulo Quicoli

unread,
Jul 20, 2021, 1:20:21 PM7/20/21
to nhusers

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/4671431A-3E00-431E-A380-19C9EFF0997A%40gmail.com.
Reply all
Reply to author
Forward
0 new messages