NHibernate Forge
The official new home for the NHibernate community

Browse Wiki Pages by Tags

Showing related tags and posts for the Wikis application. See all tags in the site
  • 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 Robert Byrne on 02-27-2009
    Filed under: , , ,
  • Query Syntax

    Below is the HQL full sintax, based on the latest Hibernate version, and which is being implemented in NHibernate. However, some statements or expressions might be not yet valid for NHibernate. Syntax <Query> ::= <SelectStatement> | <DeleteStatement> | <UpdateStatement> | <InsertStatement>...
    Posted to NHibernate 2.0 by Diego Jancic on 01-07-2009
    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 Woil on 09-18-2008
    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 Fabio Maulo on 09-10-2008
    Filed under: ,
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems