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

Browse Wiki Pages by Tags

Showing related tags and posts for the How to wiki. See all tags in the site
  • Mapping tables

    I'm new to NHibernate, So I'm not sure if I this is even the place to ask questions. But here goes. This is my problem: I am building a website using Orchard CMS. All the Orchard tables are mapped by NHibernate. I also have tables in the same database that are NOT mapped by NHibernate. These...
    Posted to How to by oceantrain on 11-23-2011
    Filed under: , , , ,
  • Get unique results from joined queries

    Problem: A recurring issue that new NHibernate users keep asking about, is the fact that they sometimes get duplicate results from their queries For example, take a look at the next model: where Comment.Name refer to the name of the person who wrote the comment. If you'd want to issue a query on...
    Posted to How to by John Davidson on 09-07-2011
    Filed under:
  • Mapping the same class to a view and a table using entity-name

    The Scenario You have a single class which you must map to both a table and a database view (or perhaps another table). The view is returning records from the table itself, usually filtered, and the view may have more or less columns than the table. A more practical example is a multi tenant database...
    Posted to How to by John Davidson on 09-07-2011
    Filed under: , , ,
  • Lazy loading - eager loading

    In this article I want to discuss the lazy loading mechanism provided by NHibernate. It is recommended for maximum flexibility to define all relations in your domain as lazy loadable. This is the default behavior of NHibernate since version 1.2. But this can lead to some undesired effects if querying...
    Posted to How to by MarkCranness on 07-08-2011
    Filed under: ,
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems