Which Library to use for Code Based Mappings?

36 views
Skip to first unread message

brandon robbins

unread,
Jan 22, 2021, 2:59:42 PM1/22/21
to nhusers

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.

Frédéric Delaporte

unread,
Jan 22, 2021, 3:01:51 PM1/22/21
to nhusers
There is no preferred method. It depends on your projects needs, on your team preferences, ...

brandon robbins

unread,
Jan 25, 2021, 3:10:06 PM1/25/21
to nhusers
Thanks for the response!  Do you know if we are under the correct assumption that ownership of the Fluent-NHibernate repo has been taken over the by NHibernate team?

Frédéric Delaporte

unread,
Jan 25, 2021, 3:14:20 PM1/25/21
to nhusers

brandon robbins

unread,
Jan 26, 2021, 3:32:10 PM1/26/21
to nhusers
That's all the information I need, thanks for taking the time to answer my questions.
Reply all
Reply to author
Forward
0 new messages