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

How specify discriminator column name

3 Answers 101 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cedric
Top achievements
Rank 2
Cedric asked on 12 Mar 2009, 08:37 PM
Hi,

I was wondering if it's possible to change the column name used as discriminator in your ORM.

Exemple: instead of using voa_class use a column name like "typeID" or "categorieID".

I look in your documentation and I didn't find it...


Thanks for your help

Cedric


3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 16 Mar 2009, 12:21 PM
Hi Cedric,
here is an article that describes the purpose of the voa_class column and also specifies ways to change both the type and the name of the column. If you have any question please do not hesitate to contact us again.

Best wishes,
PetarP
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
tmlipinski
Top achievements
Rank 1
answered on 16 Mar 2009, 12:48 PM
Hi,
I'm sorry but this article says nothing about changing the name of the discriminator column name - i.e. declaring another column (for example: "RecordCategory") as a discriminator.

Regards
Tomasz
0
tmlipinski
Top achievements
Rank 1
answered on 16 Mar 2009, 01:13 PM
Ups, my fault: I've first answered then read carefully :-(. An explicit example:
    <extension key="db-class-id" value="8">  
       <extension key="db-column">  
         <extension key="db-column-name" value="RecordCategory" /> 
       </extension> 
     </extension> 
 

Regards
Tomasz
Tags
Development (API, general questions)
Asked by
Cedric
Top achievements
Rank 2
Answers by
PetarP
Telerik team
tmlipinski
Top achievements
Rank 1
Share this question
or