NHibernate Forge
The NHibernate community site.
All Tags » Mapping (RSS)

Browse Wiki Pages by Tags

Showing related tags and posts for the How to wiki. See all tags in the site
  • 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: [Edit Tags]
  • Your first NHibernate based application

    Wiki extracted from the original blog post of Gabriel Schenker Define the Domain Lets start by defining a very simple domain. For the moment it consists of one entity called Product . The product has 3 properties Name, Category and Discontinued. Add a folder Domain to the FirstSample project of your...
    Posted to How to by Fabio Maulo on 09-16-2008
    Filed under: [Edit Tags]
  • 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: [Edit Tags]
  • Configure Log4Net for use with NHibernate

    The Log4Net assebly is distributed with NHibernate binaries. If you are not sure about details of the configuration shown below please refer to this documentation. Running without Log4Net If you only want NHibernate to log the queries it sends to the data source when running unit tests you don't...
    Posted to How to by Fabio Maulo on 09-07-2008
    Filed under: [Edit Tags]
  • Mapping a view and Schema Export Workaround

    NHibernate can easily map a View as any other Table. This works as a charm, but it has a problem with Schema Export. Schema Export will detect the view as a table and will attempt to create the unexisting table. A workaround for this is using <database-object> tag to Drop the unwillable table on...
    Posted to How to by Gustavo on 09-05-2008
    Filed under: [Edit Tags]
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems