Note: this is a cross post from my own blog . This post is an exercise, similar to this and this previous posts about using NHibernate mapping by code new features present form version 3.2. The source inspiring it is an old post form Ayende , showing a non trivial requirement to map. Here the DB model...
Note: this is a cross post from my own blog . In this post we done some effort in automatically generate the mapping based on convention, but we miss a very common one: table names is usually the pluralized entity name. This is usually done by using an inflector. Thanks to Stack Overflow , I found this...
Note: this is a cross post from my own blog . Since version 3.2.0 NHibernate has an embedded strategy for mapping by code, that basically comes from Fabio Maulo ’s ConfORM . With some reading at this Fabio post, this other one , and this one too , I wrote my own sample just to see what we can do...