This is a migrated thread and some comments may be shown as answers.

Events

2 Answers 56 Views
Feature Requests
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Dawson
Top achievements
Rank 1
Mark Dawson asked on 19 Jan 2009, 08:09 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Zoran
Telerik team
answered on 20 Jan 2009, 04:19 PM
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.
0
Mark Dawson
Top achievements
Rank 1
answered on 20 Jan 2009, 04:35 PM
Cool!  That's fantastic.

Thanks,
Mark..
Tags
Feature Requests
Asked by
Mark Dawson
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Mark Dawson
Top achievements
Rank 1
Share this question
or