NHibernate Forge
The official new home for the NHibernate for .NET community

Browse Site by Tags

Showing related tags and posts across the entire site.
  • NH Mapping by code VS the Untouchable DB

    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...
    Posted to NHibernate blog by felicepollano on 09-12-2011
    Filed under: mapping, mapping by code
  • Automatic Mapping: Pluralize table names

    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...
    Posted to NHibernate blog by felicepollano on 09-05-2011
    Filed under: mapping, mapping by code
  • Using NH3.2 mapping by code for Automatic Mapping

    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...
    Posted to NHibernate blog by felicepollano on 09-05-2011
    Filed under: mapping, mapping by code
  • A fully working skeleton for sexy Loquacious NH

    After spending the last few months learning NHibernate, starting with hbm xml, to Fluent NHibernate, then Loquacious sexy mapping was released. Herewith is a solution, with tests and ioc, for a fully working skeleton demonstrating both explicit mapping by code and mapping by convention. Domain; details...
    Posted to How to by Scott Findlater on 08-17-2011
    Filed under: Mapping by code
  • View the xml generated when mapping by code

    When using mapping by code it may not be 100% obvious what XML is being generated for NHibernate. You have a couple of options, the first option is to tell NHibernate to write all your mappings into the bin folder:- var mapper = new ModelMapper(); mapper.AddMappings(typeof(CmsMeta).Assembly.GetTypes...
    Posted to How to by rippo on 07-26-2011
    Filed under: Mapping by code, Nhibernate
Page 1 of 1 (20 items)
Powered by Community Server (Commercial Edition), by Telligent Systems