-
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...
-
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...
-
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...