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

Reverse mapping to enumeration type

3 Answers 98 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kor
Top achievements
Rank 1
kor asked on 23 Nov 2009, 02:12 PM
We use the OpenAccess ORM with an existent Oracle database.


Is it possible to map a database column to an enumeration type using the reverse mapping wizard?

When I change the type manually in the generated class file, will it be overwritten when I regenerate it? (I think so.)

 

What procedure would you suggest to map a database column to an enumeration type and retain it when regeneration the class?

 
Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Ady
Telerik team
answered on 26 Nov 2009, 01:20 PM
Hi kor,

 Yes, you are right. Currently it is not possible to map a column to an Enum type using the Reverse mapping wizard.

The wizard overwrites the designer file (<classname>.Telerik.OpenAccess.cs) every time, so if you manually change the field type to an enum and move the declaration to the <classname>.cs file it will be retained after every iteration. The only problem is that you will always have to delete the newly generated integer field from the designer file.

Hope this helps

All the best,
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
Andrea Nagar
Top achievements
Rank 1
answered on 25 May 2010, 09:33 AM
Any plans to add this feature in the future?
Thanks.
Andrea
0
Ady
Telerik team
answered on 26 May 2010, 02:41 PM
Hi kor,

  Yes, we will add this feature to the OpenAccess DomainModel designer (DSL) in the near future. We won't be adding new features to the existing 'Reversemapping' wizard anymore.

All the best,
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.
Tags
Databases and Data Types
Asked by
kor
Top achievements
Rank 1
Answers by
Ady
Telerik team
Andrea Nagar
Top achievements
Rank 1
Share this question
or