Why I cannot see the Navigational Property window?

4 posts, 0 answers
  1. Jin
    Jin avatar
    80 posts
    Member since:
    Jun 2012

    Posted 23 Aug 2012 Link to this post

    As following http://www.telerik.com/help/openaccess-orm/developer-guide-crud-deleting.html, I try to setup a cascading  delete, but I cannot see the Navigational Property window.

  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 24 Aug 2012 Link to this post

    Hello Jin,

    The Navigational Property window you are looking for is actually the Properties window of Visual Studio. Here you can find additional information about it.

    In addition, following the logic of OpenAccess, in the Visual Designer each class is separated in three parts: 

        - Properties
        - Implementation 
        - Navigation

    So the properties under Navigation are called navigational properties and in order to display the Properties window for one of them, all you have to do is to select it and press the F4 button.

    I hope that helps. Let us know if the described actions do not open the Properties window so that we can troubleshoot any issues that might be there.

    Greetings,
    Doroteya
    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
  3. DevCraft banner
  4. Jin
    Jin avatar
    80 posts
    Member since:
    Jun 2012

    Posted 26 Aug 2012 Link to this post

    Hi Doroteya,

    If you created two entity class with “Add New Domain Class" menu in VS instead of "Update From Database", and want to create the relation between the two entity class, the Navigational Property window will not be displayed as your description.
  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 28 Aug 2012 Link to this post

    Hi Jin,

    In OpenAccess the relationship between two persistent classes is called association and the place where you create or edit it is Association Editor. To start it easily, right-click on Visual Designer and select Add > Add New Association...

    There you need to specify the following:
        1) An association name
        2) A source class
        3) A target class
        4) A source class property

    Once you click OK you will see these two changes:
        1) Foreach of the two persistent classes a navigational property will be generated (placed in the Navigation section of the class)
        2) The two persistent classes will appear connected by a line

    According to the scenario you implement, OpenAccess allows you to create one-to-many associations, many-to-many associations, one-to-one associations (with vertical inheritance too) and constraints in a round-trip scenario.

    When you specify the type of the association, you can go back to setting up the cascading delete.

    I hope that helps. 


    Greetings,
    Doroteya
    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top