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

OpenAccess ORM Create Model Wizard creating Pascal names all in uppercase.

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 2
Paul asked on 21 Jan 2011, 09:49 PM

When adding a new Telerik OpenAccess Domain Model (version 2010.3.1125.1), I take the following steps:

  1. Populate from database
  2. Using an Oracle backend (ODP for Oracle Client 11.1.0.6.21)
  3. Select the desired table "CAMPAIGN_LIST"
  4. Under define classes I choose:
    • Case: Pascal
    • Remove underscores
    • Interpret underscore as word delimiter

I would assume the outputted class would be “CampaignList”.  However, the class that gets created is “CAMPAIGNLIST”.  The same happens for properties and fields.

How do I get the output to be “CampaignList”?

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 25 Jan 2011, 02:49 PM
Hello Paul,

 Our naming generation mechanism treats the capital letters as start of new words. So for example if you have My_OrderDetails and you prepare the same setup as yours what would you expect to get? MyOrderDetails or Myorderdetails? We believe that the second is more correct. Treating capital letters as start of words makes it possible for us to recognize different words that are not separated in any way. You will have to agree that it would be near to impossible to distinguish the different words in myorderdetails without depending on the capital letters. Perhaps if we make an option that disables this feature and only depends on predefined delimiters (like underscore) maybe that will work for you?
We look forward to your opinion on the matter.

Greetings,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
Paul
Top achievements
Rank 2
answered on 25 Jan 2011, 03:16 PM

Currently, we are unable to use OpenAccess ORM because of this naming issue.  An option to use the predefined delimiter as the word separator is exactly what we need.  Please let me know if this enhancement ever gets into the OpenAccess ORM product.

Also, I have a couple other minor enhancement requests for the OpenAccess ORM.  Should they be posted to the feature request forum?

0
PetarP
Telerik team
answered on 26 Jan 2011, 07:00 PM
Hi Paul,

 If you have some already defined request it will be best if you submit a feature request.
As for the enchantment you suggested - yes it will get in the product however I am not able to provide you with a time frame at this point.

Best wishes,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 2
Answers by
PetarP
Telerik team
Paul
Top achievements
Rank 2
Share this question
or