Delet a (Polymorphic) Entity with Additional Child Entities

Posts   
 
    
cmprogrock
User
Posts: 40
Joined: 16-Nov-2008
# Posted on: 30-Jun-2009 19:25:10   

Hi. I'd like a quick and easy way to delete an Enitity that has child Entities

Example:

I have a 'App' Entity. (It is a SuperType to an 'AppRealtor' Entity.) 'AppRealtor' creates a Child Entity...a PageEntity.

So: App>AppRealtor AppRealtor has 1:many Page

What i want to do:

I want to delete the App....and all the related SubType & Child Entities!

QUESTION: Is there a nice easy way to do this WITHOUT having to walk through all the tables?{ Perhaps: App(10).DeleteAll ?}

Example would be appreciated!

THX

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 30-Jun-2009 21:41:49