Choosing the right mapping method

Knowing more than one way of declaring NHibernate mapping may sound good but it may also be confusing. It is important to have knowledge of different methods of mapping but it is equally important to be able to choose the right method that best fits the bill, given a particular job. So how do you go about choosing the right mapping method?

If I am working on a green-field project, then my default stand is to use FNH. This is mainly because there is no legacy database or legacy domain model that I need to work with. So basically, I get all the freedom to define the best domain model that suits my business requirements and then use NHibernate and FNH to drive the design of database from there. This works quite nicely ...

Get Learning NHibernate 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.