Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Child_DeleteSelf() not called from parent

$
0
0

I have a parent object that inherits from BusinessBase and a child object that inherits from BusinessBase.  The child is an object contained within the parent.  The child object is a regular business object.  It is NOT a list.  All my child data portal methods (e.g. Child_Create(), Child_Insert(), Child_Fetch(), Child_Update()) get called as expected with the exception of Child_DeleteSelf().  My child methods get called correctly when I invoke FieldManager.UpdateChildren(this);  I have the correct signature in the methods.

I've seen similar posts on-line from other people and there doesn't seem to be an answer.  I don't understand why the parent cannot invoke a delete on a child in the same way it invokes for insert, fetch, update, etc.  This seems like a natural thing to do and it's all part of one transaction.

If a parent cannot invoke this, I have no idea why Child_DeleteSelf() even exists.

I've been using CSLA for several years now.  I guess I've never encountered this situation.

If anyone has any insight or experience with this, I'd be very grateful.


Viewing all articles
Browse latest Browse all 764

Trending Articles