How specify discriminator column name

4 posts, 0 answers
  1. Cedric
    Cedric avatar
    15 posts
    Member since:
    Apr 2008

    Posted 12 Mar 2009 Link to this post

    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


  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 16 Mar 2009 Link to this post

    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.
  3. DevCraft banner
  4. tmlipinski
    tmlipinski avatar
    131 posts
    Member since:
    Dec 2006

    Posted 16 Mar 2009 Link to this post

    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
  5. tmlipinski
    tmlipinski avatar
    131 posts
    Member since:
    Dec 2006

    Posted 16 Mar 2009 Link to this post

    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
Back to Top