-
In the spirit of “ Release early. Release often. And listen to your customers ” ( cit. ), even if not so early in term of time since the preview , I decided to release a first drop of the “HQL Intellisense thing” I’m working on. The current version is just able to load an...
-
[ from my blog ] Mapping: < class name = " SimpleClass " table = " TSIMPLE " > < id type = " int " > < generator class = " native " /> </ id > < property name = " Description " /> </ class > Class: public class SimpleClass...
-
One of the more interesting ability of NHibernate is to selectively filter records based on some global filters. This allow us to very easily create global where clauses that we can flip on and off at the touch of a switch. Let us take a look at see what I mean. We define the filter effectiveDate: <...
-
Steve from iMeta has been doing a lot of work on the HQL AST Parser. For a long time, that has been a really troublesome pain point for us, since this is a prerequisite for a lot of other features. It is also one of two parts of NHibernate that really need significant refactoring because the way they...
-
NOTE: this was originally posted on my own blog A lot of people are rather skeptical when it comes to executing non-trivial queries with NHibernate. In this post, i want to explore some of the features that NHibernate offers to execute those kind of queries in an easy manner. Now, the difference between...
-
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...
-
NOTE: this post was originally published on June 14, 2008 One of my favorite NHibernate features must be the MultiCriteria/MultiQuery support. This basically allows you to execute a set of queries in one database call. In case you don't know, an ICriteria instance is basically a programmatic query...