Active Record Rocks!

time to read 1 min | 143 words

I have been head down in NHibernate for the last several months, and as a result, I think that I started to miss just how enabling Active Record really is. This weekend I have been working on with it with a venegance, and I love it. The NHibernate 1.2 integration is really important, because it allows to infer even more stuff!

Allow me to present, in all its glory, the amount of stuff needed to make a class persistent:

(Image from clipboard).png

The collapsed properties merely hide the get/set clutter, by the way.

This is enough information for Active Record (along with the other classes defined in the same way, to allow me to work against the model immediately after creating it!