Archive

Ayende Rayen has just implemented 'static proxies' for NHibernate using PostSharp.

NHibernate is a well-known O-R mapper. One of the features, lazy loading of properties, previously required you to make all properties virtual. The reason is that the properties were "enhanced" (understand: subclassed) at runtime using AOPish techniques. With PostSharp, Ayende now enables lazy loading even.

Ayende did the job in 4 hours:

The first thing that I have to say is wow Post Sharp rocks! And I mean that as someone who is doing AOP for a long while, and has implemented some not insignificant parts of Castle.DynamicProxy. Leaving aside the amount of power that it gives you, PostSharp simplicity is simply amazing, wow!

The feature is now pre-alpha only, but "it works". For more info please refer to Ayende's blog or contact him.

Happy PostSharping!

-gael

Comments (2) -

Omer van Kloeten
Omer van Kloeten
10/10/2008 1:26:33 PM #

It was nice to see him working with PostSharp. It's nice to see an implementation in real time.

Also FYI, his name's Oren Eini. Ayende Rahien is his pseudonym... :)

gael
gael
10/10/2008 2:10:44 PM #

Why to have a pseudonym if it is not to use it ;).

Comments are closed