Search code examples
c#nhibernatenhibernate-mappingnhibernate-mapping-by-code

nHibernate 3.2 database config in code?


NHibernate seems to have some new ways to map entities in code, which is really nice, but I can't find any information about configuring the database connections in code. It has been a while since I used NHibernate (version 2) and I am used to Fluent NHibernate which provides this capability. Is there a similar feature built into NHibernate 3.2 and if so, how do I use it?


Solution

  • I believe the newer alternative to Fluent NHibernate available in version 3.2 has been dubbed the 'Loquacious API'. See this question here and the nhibernate forge wiki here for examples on how to use it.