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

Inheritance in reverse mapped database model

8 Answers 72 Views
Feature Requests
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Vaughan
Top achievements
Rank 1
Daniel Vaughan asked on 17 Jul 2009, 12:52 PM
Will there be support for generating classes with inheritence from a reverse mapped database, without manually editing files?

Cheers,
Daniel

8 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 17 Jul 2009, 02:57 PM
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.
0
Daniel Vaughan
Top achievements
Rank 1
answered on 20 Jul 2009, 07:16 AM
Ok, thanks for your response.

Cheers,
Daniel
0
lkeel
Top achievements
Rank 1
answered on 27 Jul 2009, 08:08 PM
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.
0
Ady
Telerik team
answered on 28 Jul 2009, 09:16 AM
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.
0
lkeel
Top achievements
Rank 1
answered on 08 Sep 2009, 03:02 PM
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
0
Ady
Telerik team
answered on 10 Sep 2009, 03:37 PM
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.
0
Fabio Renggli
Top achievements
Rank 1
answered on 04 Jan 2011, 09:20 AM
Hi

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

Regards Fabio
0
Petko_I
Telerik team
answered on 05 Jan 2011, 11:34 AM
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.
Tags
Feature Requests
Asked by
Daniel Vaughan
Top achievements
Rank 1
Answers by
Ady
Telerik team
Daniel Vaughan
Top achievements
Rank 1
lkeel
Top achievements
Rank 1
Fabio Renggli
Top achievements
Rank 1
Petko_I
Telerik team
Share this question
or