How to configure fluently from appsettings.json #747
Replies: 2 comments 2 replies
-
FluentNHibernate is an add-on to configure NHibernate using code instead of configuration files. So I'm confused... Are you using just NHibernate with XML configuration or what do you mean? |
Beta Was this translation helpful? Give feedback.
-
There is no support of reading configuration from appsettings.json currently. NHibernate still relies by default on its own xml configuration file. But everything can be configured programmatically, so, putting configuration into the appsettings.json is possible. It is then up to the application developer to read it and perform the programmatic configuration of NHibernate from it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it even possible? If a blog even mentions how, the only thing I see are
Xml
config files. If not... re:Json
, then how exactly do we configure via config? I should also mention we are configuring postgres drivers using theNpgsql
project.Beta Was this translation helpful? Give feedback.
All reactions