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

Figguring out inheritence

3 Answers 66 Views
Getting Started
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
Top achievements
Rank 2
Robert asked on 10 Dec 2008, 04:04 PM
I'm just starting with OpenAccess and am trying to figgure out what I can do with designers and what I can't. 

I have an Employee Table that references a Person table such that Employee is a person with a few extra attributes, essentially a sub-class.  I can't figure out how to set up vertical inheritence so that my Employee class will have all the properties of itself and the Person table.  The PC Base Class property in the mapping wizard is read-only so do I have to do this in code itself?  How would I do this?

Thanks,
Robert

3 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 12 Dec 2008, 03:56 PM
Hi Robert,
I believe that this topic form our help: http://www.telerik.com/help/openaccess-orm/classes-inheritance.html will be of a most importance to you. Inside the wizard the PC base property is read-only, but the Strategy dropdown should contain all possible inheritance strategies. You have to select vertical option there. If there are additional questions that are not covered well enough, please do not hesitate to contact us further.

Best wishes,
Dimitar Kapitanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Robert
Top achievements
Rank 2
answered on 16 Dec 2008, 03:17 PM
As it happens, the strategy drop-down is greyed out for me so I can't specify vertical in there.  Any ideas?

0
Jan Blessenohl
Telerik team
answered on 16 Dec 2008, 04:47 PM
Hi Robert,
I only know 2 scenarios where the combo might be grayed out. One is if the base class is in a different project and one is if you add the base class and the mapping dialog did not refresh. A good test is to just restart VS.

If you still have problems, can you pls. send me your projects?

Greetings,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Getting Started
Asked by
Robert
Top achievements
Rank 2
Answers by
Dimitar Kapitanov
Telerik team
Robert
Top achievements
Rank 2
Jan Blessenohl
Telerik team
Share this question
or