Events

3 posts, 1 answers
  1. Mark Dawson
    Mark Dawson avatar
    19 posts
    Member since:
    Aug 2012

    Posted 19 Jan 2009 Link to this post

    Hi,

    I've previously used an ORM product from another company, and one of the things they had was events that fired when database actions took place.

    For example, onBeforeSave or onAfterSave, OnAfterLoad, etc.

    As you don't inherit anything from OpenAccess, I'm not sure how you would implement this, but they allow you to do type conversion, write to log files, track updates, etc.

    Regards,
    Mark.
  2. Answer
    Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 20 Jan 2009 Link to this post

    Hello Mark,

    To achieve your desired goal with OpenAccess, you need to implement the IInstanceCallbacks interface for the persistent classes you want to do the tracking for. The IInstanceCallbacks interface contains the PostLoad(), PreRemove() and PreStore() methods which are called when the corresponding events fire.

    I hope this will make your work with OpenAccess easier and we are looking forward to any further questions from you.

    Regards,
    Zoran
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Mark Dawson
    Mark Dawson avatar
    19 posts
    Member since:
    Aug 2012

    Posted 20 Jan 2009 Link to this post

    Cool!  That's fantastic.

    Thanks,
    Mark..
Back to Top