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

One table, multiple class - is it possible?

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabor
Top achievements
Rank 1
Gabor asked on 05 Mar 2010, 10:08 PM
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

1 Answer, 1 is accepted

Sort by
0
Gabor
Top achievements
Rank 1
answered on 08 Mar 2010, 04:41 PM
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



Tags
General Discussions
Asked by
Gabor
Top achievements
Rank 1
Answers by
Gabor
Top achievements
Rank 1
Share this question
or