Hello,
I'm building an XAF application on legacy database.
I need to create, modify, delete the objects of some types using a API. How to override the functions such a save, delete?
I tried:
protected override void OnSaving()
{
//base.OnSaving();
}
protected override void OnSaved()
{
//base.OnSaved();
}
but Xaf still persists objects as normal - puts record into database.
I want to achieve a functionality like this:
- The user cliks save of the detail view.
- Instead of xaf saving, I use the API function to save object in the specific manner.
Where to put the code?