There are two options for code based mapping for
NHibernate that I'm aware of. We can use the built in NHibernate.Mapping.ByCode or use Fluent-Nhibernate. I had, for many years, used Fluent-Nhibernate, but that project went unmaintained for a long period of time. So long, that I assumed it was dead and started using NHibernate.Mapping.ByCode for new projects. Recently, I noticed that Fluent-Nhibernate published a new package and is also now part of the Nhibernate repository.
I would love to know, especially from someone in the
NHibernate
team, what's the current preferred method for code based mapping? Both methods have advantages, but documentation on the built in mapping by code is limited and spare.