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

Self Referencing Tables

1 Answer 76 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.
lkeel
Top achievements
Rank 1
lkeel asked on 27 Jul 2009, 08:51 PM
It would be great if there was a better naming convention for self referencing tables.  For Example:  I have a group table and you can have a group contain other groups.  So in order to achieve this, I have added a ParentID column.  The problem is that OpenAccess names this property as Group1.  It would be better if it would name it ParentGroup.  It seems to me (at least in my narrow world) that if a table is self-referencing, then it is most likely trying to create a parent-child relationship so the parent is referenced by the child.  If the default naming convention could not be accomodated, then some way to validate\display\edit all properties for classes within the project that have a 1 at the end would be acceptable.

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 29 Jul 2009, 02:48 PM
Hello lkeel,

 We have scheduled a better default naming mechanism for reference fields, where the field name is derived from the FK column name and not the referenced type name. So if you have 'ParentGroupId' column that is self referencing, the generated field would be 'parentGroup' and not Group1.

 Currently there is no UI to view/edit all fields that end with 1 but you can expect the improvement in one of the next service packs.

Kind regards,
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.
Tags
Feature Requests
Asked by
lkeel
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or