Reverse mapping to enumeration type

4 posts, 1 answers
  1. kor
    kor avatar
    3 posts
    Member since:
    Nov 2009

    Posted 23 Nov 2009 Link to this post

    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

  2. Answer
    Ady
    Admin
    Ady avatar
    588 posts

    Posted 26 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. Andrea Nagar
    Andrea Nagar avatar
    2 posts
    Member since:
    May 2010

    Posted 25 May 2010 Link to this post

    Any plans to add this feature in the future?
    Thanks.
    Andrea
  5. Ady
    Admin
    Ady avatar
    588 posts

    Posted 26 May 2010 Link to this post

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