This is a migrated thread and some comments may be shown as answers.

Why I cannot see the Navigational Property window?

3 Answers 59 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jin
Top achievements
Rank 1
Jin asked on 24 Aug 2012, 01:59 AM
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.

3 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 24 Aug 2012, 10:39 AM
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!
0
Jin
Top achievements
Rank 1
answered on 27 Aug 2012, 03:14 AM
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.
0
Doroteya
Telerik team
answered on 28 Aug 2012, 12:53 PM
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!
Tags
Design Time (Visual Designer & Tools)
Asked by
Jin
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Jin
Top achievements
Rank 1
Share this question
or