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

Class connections through multiple layers

1 Answer 47 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.
Robert Lautenbach
Top achievements
Rank 1
Robert Lautenbach asked on 02 Mar 2010, 09:36 PM
I'm generating persistent classes for an existing database using the reverse mapper. I have tables that are indirectly linked to other tables, sometimes through 3 - 4 layers of joins.

Here's an example:

- Client table
- Department table, with fk to Client
- Group table, with fk to Department
- Employee table
- Group- Employee joiner table

What is the best way to go about adding a property to the Client persistent class that exposes all Employees? Is that typically something that you would code yourself? Or is it a configuration point I need to be aware of in the reverse mapper?

1 Answer, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 03 Mar 2010, 08:26 PM
Hi Robert Lautenbach,
Our reverse engineering wizard can generate all this references and collections for you. If we detect a fk we analyse it and show a reference or join table. If you want to have collections you can select the reference field in the details tab and check the 'create one to many list' checkbox. Now you find a collection on the referenced class. The same for join tables.

If you have any problems please contact us.

Best wishes,
Jan Blessenohl
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Design Time (Visual Designer & Tools)
Asked by
Robert Lautenbach
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or