Logo

NHibernate

The object-relational mapper for .NET

Introducing NHibernate ProxyGenerators

I am pleased to announce the first release of NHibernate ProxyGenerators, the latest addition to the NHibernate Contrib project.  NHibernate ProxyGenerators (NHPG)  is a simple utility that you can use to pre-generate lazy loading proxies for use with NHibernate.  Why would you want to pre-generate lazy loading proxies you ask?  The prime example is to make use of lazy loading functionality in a Medium Trust environment, like a shared hosting ASP.Net environment.  NHibernate will function in a Medium Trust environment but you were previously required to disable lazy loading for all of your entities.  The default behavior of NHibernate is to generate these proxies at runtime during your application’s startup, an operation that requires elevated permissions not present under Medium Trust.  NHPG now allows you to generate these proxies in your development or build environment (which should have the required permissions) and deploy them along with the rest of your application’s assemblies.

Please visit NHForge.org for complete reference information and tutorials.  Any feedback or issues can be sent to the NHibernate Users group and is greatly anticipated.


Posted Mon, 22 September 2008 07:28:22 PM by wcpierce
Filed under: proxy, lazy loading, ProxyGenerators

comments powered by Disqus
© NHibernate Community 2024