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...
[This article was originally published on my personal blog here . I hereby grant myself permission to re-publish it on NHForge.org.] [Code for this article is available on GitHub here .] In this post, we’ll examine the ways that NHibernate supports the DateTime-related data types, including some new...
I can’t count with one hand, how many times I’ve seen this mapping in my few years of using nhibernate: < class name = " Profile " > < composite-id > < key-many-to-one name = " User " column = " UserId " class = " User " /> </ composite-id...