Hi!

Do your mappings change at run time? To me that's the question, why do you need 
to change your database class mappings at run time?

If we take NHibernate out of the scene it's like your database is changing at 
runtime, is that true?

Sorry but I'd like to understand your reason for something that's not common to 
see (at least to me) in software design...

Regards




________________________________
From: [email protected] <[email protected]> on behalf of 
GANESHKUMAR M <[email protected]>
Sent: Thursday, August 22, 2024 6:20:38 AM
To: nhusers <[email protected]>
Subject: [nhusers] Why Rebuild SessionFactory for Every Mapper Change?


Hello Everyone,

I hope you're all doing well.


I'm currently working with NHibernate and have been reviewing some of its code 
on GitHub. I noticed that every time we add or modify mappers in the 
configuration, it seems necessary to rebuild the SessionFactory.

Why can't we simply update the newly added mappers in the existing 
SessionFactory? Is it mandatory to rebuild the SessionFactory each time? What 
is the rationale behind maintaining the SessionFactory as immutable? If there 
are any vulnerabilities or risks with this approach, could you provide example 
scenarios?

--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhusers/0a516299-fea1-45c8-ab4a-31a81aa8d94cn%40googlegroups.com<https://groups.google.com/d/msgid/nhusers/0a516299-fea1-45c8-ab4a-31a81aa8d94cn%40googlegroups.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/DU0P251MB1009D8FD954CE511C850D317A18F2%40DU0P251MB1009.EURP251.PROD.OUTLOOK.COM.

Reply via email to