ActiveRecord Lock and AfterLoad Event

Castle ActiveRecord has a BeforeLoad event, but I also need an AfterLoad event. I know that you can use the NHibernate PostLoad event. But how can I do this?

+4
source share
1 answer

ActiveRecord "events" are based on NHibernate interceptors ( IInterceptor ), not NHibernate events . IInterceptor does not have PostLoad , so ActiveRecord does not have an AfterLoad method.

Here are the docs on connecting event listeners to ActiveRecord .

0
source

All Articles