| 1/30/2007 11:55:16 PM |
Hi Paul,
I have used Paul Welter's template to generate classes for my web application. I need to do some checking on OnDeleting but it is not firing when I delete object. The class implements IObjectNotification interface.
What am I missing?
Any help will be appreciated.
|
| 1/31/2007 12:42:22 AM |
You'll need to give more information, if not code. Are you using MarkForDeletion or ExecuteDelete, or if this a child cascade delete, etc.
Thanks, Paul Wilson |
| 2/2/2007 10:08:03 PM |
Hi Paul,
currently i am testing with MarkForDeletion( ) but i also need notification events to fire for ExecuteDelete( ).
It's not a child cascade delete.
thanks.
|
| 2/2/2007 10:11:30 PM |
Hmmm, I can't think of any reason why OnDeleting would not be working for basic cases -- you'll need to send me something to reproduce it, and then realize I'm running very short on time lately. As for ExecuteDelete, all of the Execute methods are intentionally designed to be "batch" sql operations, so they do not work on individual objects, which means there are no events that I can expose.
Thanks, Paul Wilson |