Implementing cascading delete with Telerik OpenAccess ORM

Thread is closed for posting
2 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 06 Oct 2009 Link to this post

    Requirements

    RadControls version

    2009.2.826.20
    Telerik OpenAccess ORM version
    2010.1.414.3
    .NET version

    3.5
    Visual Studio version

    2008
    programming language C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    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:
    1. Model(NorthWind);
    2. Website(UI);

    Requirements:
    Northwind database.
    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:
     1.  Default.aspx.
    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.
     2.  Crud.aspx
    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.

    UPDATE: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.
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 13 Jun 2011 Link to this post


    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.

    All the best,
    Damyan Bogoev
    the Telerik team
    Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Back to Top