Castle ActiveRecord has BeforeLoad event but I need AfterLoad event too. I know it’s possible to use NHibernate’s PostLoad event. But how can I do this?
Castle ActiveRecord has BeforeLoad event but I need AfterLoad event too. I know it’s
Share
ActiveRecord’s “events” are based on NHibernate interceptors (
IInterceptor), not NHibernate events.IInterceptordoesn’t have anyPostLoad, so there’s no overridableAfterLoadmethod in ActiveRecord.Here are the docs on how to hook up event listeners in ActiveRecord.