One table, multiple class - is it possible?

Thread is closed for posting
2 posts, 0 answers
  1. Gabor
    Gabor avatar
    8 posts
    Member since:
    Nov 2008

    Posted 05 Mar 2010 Link to this post

    Hi All,

    Is it possible to reverse engineer some columns of the tables to one class, and some to others?

    For example: I have a customer table, and want the city, street, zip etc. columns to be mapped to an address class.

    So more classes than tables.

    Is it possible to forward engineer in the same manner, ie. different classes to map to the same table?

    The designers unfortunately don't allow this,

    When I try to manually edit the config files, in the reversemapping.config I can set to map some columns to different classes, but in the app.config how can I set the fields to be mapped to the tables with different name than the class?

    NHibernate allows this, does the OA has the same facility?

    Thanks in advance

    Gabor
  2. Gabor
    Gabor avatar
    8 posts
    Member since:
    Nov 2008

    Posted 08 Mar 2010 Link to this post

    The answer from Telerik is here:

    http://www.telerik.com/community/forums/orm/getting-started/how-to-engineer-the-table-s-fields-to-multiple-objects.aspx

    (I apologize, but I sent the same question to the Getting started thread too before).

    Gabor



Back to Top