|Telerik OpenAccess ORM version
|Visual Studio version
all browsers supported by RadControls
This example demonstrates how you can achieve to delete hierarchy of object s(ones that are in parent-child relations) with Telerik OpenAccess ORM. The same functionality is also known as cascading delete.
. The zip file contains 2 projects:
Cascading deletes are not specified by default. They are only available for references that are marked as dependent.
You will find two web pages in the website project:
This page is focused only on the deletion process. It illustrates how exactly the depend attribute is used in order to achieve cascading delete. The example is intentionally containing only the delete function in order to keep the code clean and straight forward.
The crud.aspx page provides some additional crud functionality(Insert, Update) to the already defined cascading delete in the default.aspx page (though those Crud operations do not have direct impact over the cascading delete).
If you would like to observe only the cascading delete than you should set the default.aspx page as your starting page. If you want to see the complete example (including all CRUD operations) then you should use the crud.aspx page as your default one.
The most recent version of this project can be found in the Software Development Kit, which you can download here
. In case you have questions related to this project, please use the support ticketing system