Quick question: any sample on Event handler? Like 'OnUpdate()' or 'BeforeDelete()'.

Oct 1, 2009 at 7:56 PM

Quick question: any sample on Event handler? Like 'OnUpdate()' or 'BeforeDelete()', ... Thanks!

Coordinator
Oct 2, 2009 at 8:27 AM

we are making great changes. and as part of our next release, the interceptors like onUpdate , BeforeDelete will be implemented. This will allow you to add methods or functions to your entitiy. These events methods will be attributed and called when any of the actions occurs, for example :

 

public class Customer
{
    public virtual string FirstName {get; set;}

    [OnUpdateHandler]
    public void OnUpdate(object sender , EventArgs args)
    {

    }


    [OnDeleteHandler]
    public void OnUpdate(object sender , EventArgs args)
    {

    }
}

 

 

Coordinator
Feb 9, 2010 at 1:39 PM

We are happy to annouce the new release which supports event handlers. Entity Event Handlers