Class connections through multiple layers

Thread is closed for posting
2 posts, 1 answers
  1. Robert Lautenbach
    Robert Lautenbach avatar
    18 posts
    Member since:
    Dec 2009

    Posted 02 Mar 2010 Link to this post

    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?
  2. Answer
    Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 03 Mar 2010 Link to this post

    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.
Back to Top