Hi

Have a look here :
https://ayende.com/blog/2903/real-world-nhibernate-reducing-startup-times-for-large-amount-of-entities


On Tue, 20 Jul 2021, 17:52 Kolli Ayyappa, <[email protected]> wrote:

> 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
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nhusers/4671431A-3E00-431E-A380-19C9EFF0997A%40gmail.com
> <https://groups.google.com/d/msgid/nhusers/4671431A-3E00-431E-A380-19C9EFF0997A%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhusers/CAF8vUGXvr7qUm0TRRtT1rYTyExJXZV2OFqR5yEp4GQdBG6Y52Q%40mail.gmail.com.

Reply via email to