-
I found many examples online covering how to serialize NHibernate entities for use over a WCF channel, while still using lazy and eager loading. In my application, my database models and my SOA models needed to be exactly the same; therefore, I wanted to avoid the use of DTOs. However, none of the examples...
-
Download the latest binaries for NHibernate ProxyGenerators Extract the binaries to your "lib" directory relative to your source files Open a command prompt and navigate the to "bin" directory in your web project. Enter the following command: ..\..\..\lib\bin\net-2.0\NHPG.exe /o:Example...
-
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...