I'll try this, thanks a lot.
On Jun 10, 7:48 am, MattF <[email protected]> wrote:
> make a class that inherits from IPreUpdateEventListener, and in the
> method return true if you want to cancel the delete.
>
> then put a [EventListener] attribute at the top of that class.
>
> and then in your ActiveRecordStarter.Initialize() include your class
> you just made (or you could do the equivalent in the configuration, i
> guess)
>
> On Jun 10, 8:48 am, "Alessandro C." <[email protected]>
> wrote:
>
>
>
> > Do you have some sample links on how to use interceptors or event
> > listeners with AR?
>
> > Thanks again.
>
> > On 9 Giu, 23:15, Tuna Toksoz <[email protected]> wrote:
>
> > > interceptors or event listeners?
>
> > > Tuna Toksöz
> > > Eternal sunshine of the open source mind.
>
> > >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...
>
> > > On Tue, Jun 9, 2009 at 11:52 PM, Alessandro C. <
>
> > > [email protected]> wrote:
>
> > > > I need a sort of validation before deleting an entity. If the
> > > > condition is true the delete can occurs otherwise an exception should
> > > > be thrown. This validation must be performed even with cascade delete
> > > > behaviour.
>
> > > > any suggestions?
> > > > Thanks- Nascondi testo citato
>
> > > - Mostra testo citato -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---