Figguring out inheritence

4 posts, 0 answers
  1. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 10 Dec 2008 Link to this post

    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
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 12 Dec 2008 Link to this post

    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.
  3. DevCraft banner
  4. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 16 Dec 2008 Link to this post

    As it happens, the strategy drop-down is greyed out for me so I can't specify vertical in there.  Any ideas?

  5. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 16 Dec 2008 Link to this post

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