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