Skip to content

.net core 3.1 BuildSessionFactory error handling #2638

Answered by bahusoid
sianabanana asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a reason that the DB connection is made at this initialisation point

I believe it's needed to collect DB reserved keywords. To avoid it you can set hbm2ddl.keywords setting to none.

Also see https://nhibernate.info/doc/nh/en/index.html#configuration-optional with more details about hbm2ddl.keywords setting.

P.S. Documentation is actually wrong stating that none is default value for hbm2ddl.keywords. Reserved keywords are collected by default.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sianabanana
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2638 on December 15, 2020 17:43.