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

problem with the association between two domain classes

1 Answer 80 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierick Mellerin
Top achievements
Rank 1
Pierick Mellerin asked on 29 Mar 2011, 08:44 AM
Hello,

[EDIT]
OK, it was a misunderstanding... before adding an association between two persistent entities, the two domain classes must be mapped to tables and the mapping between columns and properties must be done...

I have a problem when I want to add an association between two domain classes. I'm trying to link both field with the same type (Int16), Action.ActionTypeId => ActionType.Id, the parent one (ActionType.Id) having identity at "true" (cf. capture 1).

Nothing appear in the dialog box (cf. capture 2): I don't see any field.

Maybe I misunderstand the usage of the designer... :)

I'm using VS 2010 SP1 with Telerik-OpenAccess-ORM-trial-2011.1.325.1.

Thanks in advance!


Pierrick

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 31 Mar 2011, 08:47 AM
Hi Pierick Mellerin,

 At the moment it is not possible to configure the association manually unless you have a table mapped to your classes and columns mapped to your properties. Otherwise, even though you do not see the members for selection - just clicking OK will create an Association that will automatically be configured by OpenAccess and it will still serve the purposes of navigation. You should just start the Update Schema From Model wizard so that the tables are created in the database, from this point on OpenAccess will automatically manage your association in the runtime.

All the best,
Zoran
the Telerik team
Tags
Getting Started
Asked by
Pierick Mellerin
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or