Inheritance in reverse mapped database model

9 posts, 0 answers
  1. Daniel Vaughan
    Daniel Vaughan avatar
    2 posts
    Member since:
    Jul 2009

    Posted 17 Jul 2009 Link to this post

    Will there be support for generating classes with inheritence from a reverse mapped database, without manually editing files?

    Cheers,
    Daniel
  2. Ady
    Admin
    Ady avatar
    588 posts

    Posted 17 Jul 2009 Link to this post

    Hello Daniel Vaughan,

     Inheritance via Reverse mapping is definitely on our todo list but we yet do not  have a specific timeframe for that.

    Greetings,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Daniel Vaughan
    Daniel Vaughan avatar
    2 posts
    Member since:
    Jul 2009

    Posted 20 Jul 2009 Link to this post

    Ok, thanks for your response.

    Cheers,
    Daniel
  5. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 27 Jul 2009 Link to this post

    Is there a workaround for this that we can use until this is implemented?  We were looking at purchasing a competitor's product when I looked at our subscription to realize OpenAccess was already a part of what we have.  But our new datamodel relies on table inheritance and our DBA is very set in his ways.  If you can't give me a workaround or a reasonable timeframe for this functionality, then I am going to have to recommend to my boss that we persue other O/R Mapping products in order to properly address the datamodel.
  6. Ady
    Admin
    Ady avatar
    588 posts

    Posted 28 Jul 2009 Link to this post

    Hi lkeel,

     Inheritance is an integral part of OO programming and is very much supported by OpenAccess. Currently the Reverse mapping wizard does not support inhertiance but this can be achieved by a combination of the Reverse and Forward mapping wizards

     Here is what you can do
    1. Use the Reverse mapping wizard to generate a basic set of classes,without inheritance.
    2. You can then introduce the inheritance between the various classes and you use the Forward mapping wizard to map the hierarchy to right tables.
    3. This link describes how to achieve the above.
    4. Please have a look at the Inheritance chapter to get a better idea of the various ways in which an inheritance hierarchy can be mapped.
     
    Please feel free to get back to us in case you need further assistance in mapping your inheritance structure.

    All the best,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 08 Sep 2009 Link to this post

    1) Will OpenAccess work with multiple levels of table inheritance?
    2) Is there any chance that there is a better work around for the reverse engineering of inherited tables?

    Thanks for a great product.
    Lee
  8. Ady
    Admin
    Ady avatar
    588 posts

    Posted 10 Sep 2009 Link to this post

    Hi lkeel,

    •  We definitely have support of inheritance via Reverse mapping on our plans it should be available in the Q3 or latest by the Q1 release next year.
    • Currently the suggest workaround is the only way to achieve inheritance via Reverse mapping.

    Best wishes,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Fabio Renggli
    Fabio Renggli avatar
    4 posts
    Member since:
    Dec 2009

    Posted 04 Jan 2011 Link to this post

    Hi

    Is the inheritance via reverse engineering already implemented in the actual release? Thanks for a quick answer.

    Regards Fabio
  10. Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 05 Jan 2011 Link to this post

    Hello Fabio Renggli,

    We have extended our inheritance support and with the current version of OpenAccess you should be able to accomplish more complex scenarios. However, automatically detecting inheritance and building a class hierarchy based on the tables structure in the database is something that requires careful configuration on the part of the developer. Some inheritance scenarios may be automatically detected but others require design decisions that are made by the developer. We may introduce some improvements in this automation process but our main focus was to provide coverage for more inheritance cases. When you reverse map your model you have tools to configure inheritance based on the scenario you are trying to accomplish. We have also updated our help documentation on inheritance topics and have added extended inheritance support with the Fluent Mapping API. Have a look at the following articles:

    Inheritance with Fluent Mapping API
    Inheritance with Visual Designer

    Do not hesitate to contact us, should you have any questions or you need help with an inheritance scenario.


    Kind regards,
    Petko_I
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Back to Top
DevCraft banner