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

Forward Mapping Question

1 Answer 88 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.
Alfred Ortega
Top achievements
Rank 2
Alfred Ortega asked on 22 Nov 2008, 08:37 PM

I am testing the forward mapping and was very suprised by it's output.  I guess inherited properties are not considered at all.  I created a base class (abstract) with 3 or 4 properties and then inherited from it and a added a single property.  Now I run the forward engineering wizard, mark my class as persistable and when the db is created only the one property I added is accounted for!  What happened to everything else that is a part of that class?  Do abstract classes/interfaces have to be marked as persistable to? 

Oh and Gilles (http://www.telerik.com/community/forums/orm/general-discussions/controlling-database-field-names.aspx) is right on about the need to be able to control table/column names in the db.  My column was called m_RecordID....


Al

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 24 Nov 2008, 10:53 AM
Hi Alfred Ortega,

If the base class is not persistent itself we mark all it's fields as transient. Pls. make all classes in your class hierarchy as persistent and you will see all the columns.

Regards,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Design Time (Visual Designer & Tools)
Asked by
Alfred Ortega
Top achievements
Rank 2
Answers by
Jan Blessenohl
Telerik team
Share this question
or